Fix link #12
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: Publish Pages | |
| on: | |
| push: | |
| branches: ["main"] | |
| # Allows to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | |
| # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | |
| concurrency: | |
| group: "pages" | |
| cancel-in-progress: false | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| env: | |
| GH_PAGES: true | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Pages | |
| uses: actions/configure-pages@v5 | |
| - name: Setup dotnet | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 8.0.x | |
| - name: Setup ANTLR | |
| uses: StoneMoe/setup-antlr4@v4.13.2 | |
| - name: Setup wasm pack | |
| uses: jetli/wasm-pack-action@v0.4.0 | |
| - name: Setup Graphviz | |
| uses: ts-graphviz/setup-graphviz@v2 | |
| - name: Setup rsvg-convert | |
| run: sudo apt-get install -y librsvg2-bin | |
| - name: Railroad Diagrams | |
| run: | | |
| cd language/rrd | |
| make | |
| - name: Geographical Interlocking NPM | |
| run: cd geographical_interlocking/simulator/react && npm ci | |
| - name: Geographical Interlocking | |
| run: cd geographical_interlocking && make build | |
| - name: Locking Table Interlocking NPM | |
| run: cd locking_table_interlocking/simulator/react && npm ci | |
| - name: Locking Table Interlocking | |
| run: cd locking_table_interlocking && make build | |
| - name: Copy output artifacts | |
| run: | | |
| mkdir -p _site/rrd | |
| cp -r language/rrd/out/* _site/rrd/ | |
| mkdir -p _site/locking_table_interlocking | |
| cp -r locking_table_interlocking/simulator/react/build/client/* _site/locking_table_interlocking/ | |
| mkdir -p _site/geographical_interlocking | |
| cp -r geographical_interlocking/simulator/react/build/client/* _site/geographical_interlocking/ | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| # Deployment job | |
| deploy: | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |