Skip to content

Commit

Permalink
Try following GitHub Actions example
Browse files Browse the repository at this point in the history
The build was just using root, try following directions here
i
Follow Github Actions tutorial for deployment
The original deploy was using a blog and just deployed root. Try following the
official directions here:

https://github.com/marketplace/actions/upload-github-pages-artifact
  • Loading branch information
paytonrules committed Dec 18, 2024
1 parent e6a3b95 commit e2f8814
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/trunk-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,23 @@ jobs:
components: rustfmt, clippy
- uses: jetli/[email protected]
- uses: jetli/[email protected]
- run: trunk build --release
- uses: actions/upload-pages-artifact@v2
- name: Build Static Site with Trunk
run: trunk build --release
- name: Upload static files as an artifact
uses: actions/upload-pages-artifact@v3
with:
path: dist
path: dist/

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
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
- name: Deploy Pages site from build
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit e2f8814

Please sign in to comment.