Skip to content

Also adjust vite config #5

Also adjust vite config

Also adjust vite config #5

Workflow file for this run

name: Publish Pages

Check failure on line 1 in .github/workflows/gh-pages.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/gh-pages.yml

Invalid workflow file

(Line: 50, Col: 9): Unexpected value 'environment'
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
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: Geographical Interlocking NPM
run: cd geographical_interlocking/simulator/react && npm ci
- name: Geographical Interlocking
environment:
GH_PAGES: true
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/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