From 179df2df6e49ee81b92424e97fb31e3f6de2dd27 Mon Sep 17 00:00:00 2001 From: Caleb Rogers Date: Thu, 29 Feb 2024 16:00:38 +0800 Subject: [PATCH] Fix yaml --- .github/workflows/deploy.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e71d542..d49dc35 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,7 +1,9 @@ name: Deploy to GitHub Pages + on: push: branches: 'main' + jobs: build_site: runs-on: ubuntu-latest @@ -14,27 +16,33 @@ jobs: with: node-version: 20 cache: npm + - name: Install dependencies run: npm install + - name: build env: BASE_PATH: '/${{ github.event.repository.name }}' run: | npm run build + - name: Upload Artifacts uses: actions/upload-pages-artifact@v3 with: - # this should match the `pages` option in your adapter-static options path: 'build/' + deploy: needs: build_site runs-on: ubuntu-latest + permissions: pages: write id-token: write + environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} + steps: - name: Deploy id: deployment