Merge pull request #117 from sile/tokenizer-set-position #73
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: GitHub Pages Deploy | |
# Controls when the workflow will run | |
on: | |
push: | |
branches: [ "master" ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: rustup update stable | |
- run: rustup target add wasm32-unknown-unknown | |
- run: cargo build --release --target wasm32-unknown-unknown -p efmt_wasm | |
- name: Prepare static files | |
run: | | |
mkdir _site/ | |
cp -r examples/ _site/ | |
rm _site/examples/efmt_wasm.wasm | |
cp target/wasm32-unknown-unknown/release/efmt_wasm.wasm _site/examples/ | |
- name: Upload files | |
uses: actions/upload-pages-artifact@v3 | |
deploy: | |
needs: build | |
permissions: | |
pages: write | |
id-token: write | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |