-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a deployment on top of the build
- Loading branch information
1 parent
8e74462
commit e6a3b95
Showing
1 changed file
with
17 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[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 |