Skip to content

Commit

Permalink
ci(deploy): merge generate-docs job to deploy-pages job
Browse files Browse the repository at this point in the history
  • Loading branch information
threeal committed Nov 30, 2023
1 parent 0d6cb6c commit 78f6076
Showing 1 changed file with 16 additions and 21 deletions.
37 changes: 16 additions & 21 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,23 @@ on:
push:
branches: [main]
jobs:
generate-docs:
name: Generate Documentation
deploy-pages:
name: Deploy Pages
runs-on: ubuntu-latest
permissions:
contents: read
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
concurrency:
group: pages
cancel-in-progress: false
steps:
- name: Setup Pages
uses: actions/configure-pages@v3.0.6

- name: Checkout
uses: actions/checkout@v4.1.1

Expand All @@ -26,29 +39,11 @@ jobs:
- name: Generate Documentation
run: yarn doc

- name: Upload Documentation as Pages
- name: Upload Documentation
uses: actions/upload-pages-artifact@v2.0.0
with:
path: docs

deploy-pages:
name: Deploy Pages
needs: generate-docs
runs-on: ubuntu-latest
permissions:
contents: read
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
concurrency:
group: pages
cancel-in-progress: false
steps:
- name: Setup Pages
uses: actions/configure-pages@v3.0.6

- name: Deploy Pages
id: deployment
uses: actions/deploy-pages@v2.0.4

0 comments on commit 78f6076

Please sign in to comment.