Skip to content

Commit

Permalink
Add a deployment on top of the build
Browse files Browse the repository at this point in the history
  • Loading branch information
paytonrules committed Dec 17, 2024
1 parent 8e74462 commit e6a3b95
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/trunk-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build and Deploy with Trunk
on: [push]

jobs:
check:
build:
name: Rust project
runs-on: ubuntu-latest
steps:
Expand All @@ -18,3 +18,19 @@ jobs:
- uses: jetli/[email protected]
- uses: jetli/[email protected]
- 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

0 comments on commit e6a3b95

Please sign in to comment.