Update about.page #46
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: build | |
| on: | |
| push: | |
| branches: [ master ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| with: | |
| persist-credentials: false | |
| fetch-depth: 0 | |
| - name: git fetch | |
| run: git fetch | |
| - name: checkout www | |
| run: git checkout -t origin/www | |
| - name: ensure pull | |
| run: git pull | |
| - name: return to master | |
| run: git checkout master | |
| - name: Install dependencies | |
| run: lein deps | |
| - name: Build site | |
| run: ./build.sh https://sourceless.org | |
| - name: git reset www | |
| run: git reset www | |
| - name: delete non-dist folders | |
| run: ls | grep -v dist | xargs rm -r | |
| - name: pull contents out of dist | |
| run: cp -r dist/* . | |
| - name: delete unused stuff | |
| run: | | |
| rm -r dist | |
| rm -r .github | |
| - name: git add . | |
| run: git add . | |
| - name: checkout www | |
| run: git checkout www | |
| - name: git status | |
| run: git status | |
| - name: Set git user | |
| run: | | |
| git config --local user.email "bot@sourceless.org" | |
| git config --local user.name "Site Builder Bot" | |
| - name: commit | |
| run: git commit -m "www-build-$GITHUB_RUN_NUMBER" | |
| - name: Push changes | |
| uses: ad-m/github-push-action@master | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| branch: www |