diff --git a/.github/workflows/trunk-deploy.yml b/.github/workflows/trunk-deploy.yml index 03656fc..9832a34 100644 --- a/.github/workflows/trunk-deploy.yml +++ b/.github/workflows/trunk-deploy.yml @@ -3,7 +3,7 @@ name: Build and Deploy with Trunk on: [push] jobs: - check: + build: name: Rust project runs-on: ubuntu-latest steps: @@ -18,3 +18,19 @@ jobs: - uses: jetli/trunk-action@v0.1.0 - uses: jetli/wasm-bindgen-action@v0.1.0 - run: trunk build --release + - uses: actions/upload-pages-artifact@v2 + with: + path: dist + + deploy: + runs-on: ubuntu-latest + needs: build + permissions: + pages: write + id-token: write + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - uses: actions/deploy-pages@v2 + id: deployment