Skip to content

modified deploy-page permissions & download trunk in build-step inste… #3

modified deploy-page permissions & download trunk in build-step inste…

modified deploy-page permissions & download trunk in build-step inste… #3

Workflow file for this run

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:
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