Add placeholder for stats command #17
This file contains 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: Deploy Github Pages | |
permissions: | |
id-token: write | |
pages: write | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup rust | |
run: | | |
rustup update | |
rustup default | |
- name: Install wasm-pack | |
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh | |
- name: Build WASM | |
working-directory: ./cartographer_web | |
run: wasm-pack build --target web --release | |
- name: Creating artifact | |
working-directory: ./cartographer_web | |
run: tar -cvf artifact.tar pkg/ resources/ index.html main.css history/ output.css | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: "github-pages" | |
path: "./cartographer_web/artifact.tar" | |
retention-days: 1 | |
if-no-files-found: error | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |