Update getrandom requirement from 0.3.3 to 0.4.2 (#169) #34
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: Deploy | |
| description: Build and deploy documentation and demonstration to Github Pages | |
| on: | |
| push: | |
| branches: ["main"] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: "pages" | |
| cancel-in-progress: false | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Setup | Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup | |
| uses: ./.github/actions/setup | |
| - name: Build | Documentation (Host) | |
| run: | | |
| cargo make doc-host | |
| mkdir -p ./pages/host/ | |
| cp -r ./target/x86_64-unknown-linux-gnu/doc/* ./pages/host/ | |
| - name: Build | Documentation (Guest) | |
| run: | | |
| cargo make doc-guest | |
| mkdir -p ./pages/guest/ | |
| cp -r ./target/wasm32-unknown-unknown/doc/* ./pages/guest/ | |
| - name: Build | WASM demonstration (en) | |
| working-directory: ./examples/wasm | |
| env: | |
| INTERNATIONALIZATION_LOCALE: en | |
| run: | | |
| (cd ../../ && cargo make generate-fonts) | |
| trunk build --release --public-url ./ | |
| mkdir -p ../../pages/demonstrations/wasm/en/ | |
| cp -r ./dist/* ../../pages/demonstrations/wasm/en/ | |
| - name: Build | WASM demonstration (fr) | |
| working-directory: ./examples/wasm | |
| env: | |
| INTERNATIONALIZATION_LOCALE: fr | |
| run: | | |
| (cd ../../ && cargo make generate-fonts) | |
| trunk build --release --public-url ./ | |
| mkdir -p ../../pages/demonstrations/wasm/fr/ | |
| cp -r ./dist/* ../../pages/demonstrations/wasm/fr/ | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: ./pages | |
| 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 |