Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
chore: try separating build and deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanycw committed Aug 25, 2023
1 parent 157d01e commit 65e590f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ concurrency:
cancel-in-progress: false

jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -41,6 +38,13 @@ jobs:
uses: actions/upload-pages-artifact@v2
with:
path: 'target/doc'
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
Expand Down

0 comments on commit 65e590f

Please sign in to comment.