Skip to content

Commit

Permalink
Try another way
Browse files Browse the repository at this point in the history
  • Loading branch information
brianjaustin committed Jun 8, 2024
1 parent 0754641 commit 7ec9fb3
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- run: pnpm install
- run: pnpm check

deploy:
build:
needs: check
runs-on: ubuntu-latest
steps:
Expand All @@ -51,9 +51,16 @@ jobs:
run: |
pnpm install
pnpm build
- uses: actions/upload-pages-artifact@v3
if: github.ref == 'refs/heads/main'

deploy:
needs: build
runs-on: ubuntu-latest
steps:
- name: Deploy
uses: actions/deploy-pages@v4
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

0 comments on commit 7ec9fb3

Please sign in to comment.