From e9107d35d97a5b92b7322eecfff58b78cb7abde0 Mon Sep 17 00:00:00 2001 From: Justin Dennison Date: Sun, 27 Oct 2024 21:03:10 -0400 Subject: [PATCH] fix: upload static assets for deployment action step to work --- .github/workflows/deploy.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c78aca2..9c4f79a 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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 @@ -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