Skip to content

Commit

Permalink
fix: upload static assets for deployment action step to work
Browse files Browse the repository at this point in the history
  • Loading branch information
justin1dennison committed Oct 28, 2024
1 parent 87c9e5e commit e9107d3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
name: Deploy `blog` to GitHub Pages

on:
# Trigger the workflow every time you push to the `main` branch
# Using a different branch name? Replace `main` with your branch’s name
push:
branches: [main]
# Allows you to run this workflow manually from the Actions tab on GitHub.
workflow_dispatch:

# Allow this job to clone the repo and create a page deployment
permissions:
contents: read
pages: write
Expand All @@ -22,6 +18,11 @@ jobs:
uses: actions/checkout@v4
- name: Install, build, and upload your site output
uses: withastro/action@v2
- name: Upload static files as artifact
id: deployment
uses: actions/upload-pages-artifact@v3
with:
path: ./dist/
deploy:
needs: build
runs-on: ubuntu-latest
Expand Down

0 comments on commit e9107d3

Please sign in to comment.