Skip to content

Commit

Permalink
chore: split GitHub CICD task
Browse files Browse the repository at this point in the history
  • Loading branch information
NWYLZW committed Aug 10, 2023
1 parent 51ade14 commit ab23045
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- 'main'

jobs:
pages:
build-dist:
runs-on: ubuntu-latest
permissions:
contents: write
Expand Down Expand Up @@ -43,6 +43,25 @@ jobs:
run: |
yarn build
- name: upload dist
uses: actions/upload-artifact@v2
with:
name: dist
path: dist

deploy-to-github:
depends-on: build-dist
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- name: Download dist
uses: actions/download-artifact@v2
with:
name: dist
path: dist

- name: Deploy to GitHub Pages
uses: crazy-max/ghaction-github-pages@v3
with:
Expand Down

0 comments on commit ab23045

Please sign in to comment.