Skip to content

Commit c920bcf

Browse files
authored
chore: update workflow
1 parent ade569a commit c920bcf

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

.github/workflows/deploy.yml

+2-15
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
workflow_dispatch:
77

88
jobs:
9-
docs:
9+
build:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v4
@@ -34,7 +34,7 @@ jobs:
3434
path: docs/.vitepress/dist
3535

3636
deploy:
37-
needs: docs
37+
needs: build
3838
runs-on: ubuntu-latest
3939
permissions:
4040
pages: write
@@ -46,16 +46,3 @@ jobs:
4646
- name: Deploy to GitHub Pages
4747
id: deployment
4848
uses: actions/deploy-pages@v4
49-
50-
build:
51-
runs-on: ubuntu-latest
52-
if: github.repository == 'doocs/advanced-java'
53-
needs: docs
54-
steps:
55-
- name: Sync to Gitee
56-
uses: wearerequired/git-mirror-action@master
57-
env:
58-
SSH_PRIVATE_KEY: ${{ secrets.GITEE_RSA_PRIVATE_KEY }}
59-
with:
60-
source-repo: [email protected]:doocs/advanced-java.git
61-
destination-repo: [email protected]:Doocs/advanced-java.git

0 commit comments

Comments
 (0)