modified deploy-page permissions & download trunk in build-step inste… #2
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 | ||
on: | ||
push: | ||
branches: [main] | ||
permissions: | ||
id-token: write | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: jetli/[email protected] | ||
with: | ||
Check failure on line 16 in .github/workflows/deploy-page.yml GitHub Actions / DeployInvalid workflow file
|
||
version: 'latest' | ||
- name: Setup | ||
run: rustup target add wasm32-unknown-unknown | ||
- name: Build App | ||
run: trunk build | ||
- name: Setup Pages | ||
uses: actions/configure-pages@v3 | ||
- name: Upload Artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: './dist' | ||
deploy: | ||
needs: build | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Deploy Page | ||
id: deployment | ||
uses: actions/deploy-pages@v3 |