Skip to content

Commit

Permalink
chore: setting git pages deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
jiaziling committed Sep 14, 2024
1 parent d4d6041 commit 84f5918
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
branches: [dev-jzl]
workflow_dispatch:

# 允许 job 克隆 repo 并创建一个 page deployment
permissions:
contents: read
pages: write
Expand All @@ -17,13 +16,23 @@ jobs:
steps:
- name: Checkout your repository using git
uses: actions/checkout@v4

- name: Install dependencies
run: yarn

- name: Build your project
run: yarn run docs:build

- name: Show build output directory
run: ls -la ./docs-dist

- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: github-pages
path: ./docs-dist


deploy:
needs: build
runs-on: ubuntu-latest
Expand All @@ -34,5 +43,3 @@ jobs:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
with:
folder: docs-dist

0 comments on commit 84f5918

Please sign in to comment.