Update termination.md #54
Workflow file for this run
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: Generate tutorial | |
| on: [push, pull_request] | |
| jobs: | |
| generate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout tutorial | |
| uses: actions/checkout@v2 | |
| with: | |
| path: "tutorial" | |
| - name: Checkout generator | |
| uses: actions/checkout@v2 | |
| with: | |
| repository: "viperproject/viperonline-tutorial-generator" | |
| token: ${{ secrets.GH_PAT }} | |
| path: "generator" | |
| - name: Checkout build branch | |
| uses: actions/checkout@v2 | |
| with: | |
| ref: "build" | |
| path: "generator/build" | |
| - name: Create directory structure | |
| run: | | |
| cd generator | |
| rm -rf build/css build/images build/js | |
| cp -r assets/css build/css | |
| cp -r assets/images build/images | |
| cp -r assets/js build/js | |
| - name: Install node packages | |
| run: | | |
| cd generator | |
| npm install | |
| - name: Generate tutorial | |
| run: | | |
| cd generator | |
| node index.js \ | |
| ../tutorial/tutorial/introduction.md \ | |
| ../tutorial/tutorial/structure.md \ | |
| ../tutorial/tutorial/permissions.md \ | |
| ../tutorial/tutorial/predicates.md \ | |
| ../tutorial/tutorial/functions.md \ | |
| ../tutorial/tutorial/quantifiers.md \ | |
| ../tutorial/tutorial/quantified-permissions.md \ | |
| ../tutorial/tutorial/magic-wands.md \ | |
| ../tutorial/tutorial/statements.md \ | |
| ../tutorial/tutorial/expressions-and-assertions.md \ | |
| ../tutorial/tutorial/domains.md \ | |
| ../tutorial/tutorial/termination.md \ | |
| ../tutorial/tutorial/further-info.md | |
| - name: Create build commit | |
| run: | | |
| cd generator/build | |
| git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| git config --local user.name "github-actions[bot]" | |
| git add css images js index.html | |
| git commit -m "Deploy $(date +'%Y-%m-%d %H:%M:%S')" | |
| - name: Push tutorial to build branch | |
| if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request' | |
| uses: ad-m/github-push-action@master | |
| with: | |
| branch: build | |
| force: true | |
| directory: generator/build |