File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -28,13 +28,13 @@ jobs:
28
28
git config user.name github-actions[bot]
29
29
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
30
30
31
- - uses : actions/setup-python@v4
31
+ - uses : actions/setup-python@v5
32
32
with :
33
33
python-version : 3.x
34
34
35
35
- run : echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
36
36
37
- - uses : actions/cache@v3
37
+ - uses : actions/cache@v4
38
38
with :
39
39
key : mkdocs-material-${{ env.cache_id }}
40
40
path : .cache
59
59
github_token : ${{ secrets.GITHUB_TOKEN }}
60
60
publish_dir : ./site
61
61
62
+ sync :
63
+ runs-on : ubuntu-latest
64
+ needs : deploy
65
+ if : github.repository == 'doocs/leetcode'
66
+ steps :
62
67
- name : Sync to gitee.com
63
68
uses : wearerequired/git-mirror-action@master
64
69
env :
73
78
gitee-username : yanglbme
74
79
gitee-password : ${{ secrets.GITEE_PASSWORD }}
75
80
gitee-repo : doocs/leetcode
76
- branch : gh-pages
81
+ branch : gh-pages
Original file line number Diff line number Diff line change 17
17
ref : ${{ github.head_ref }}
18
18
fetch-depth : 0
19
19
- name : Set up Node.js
20
- uses : actions/setup-node@v3
20
+ uses : actions/setup-node@v4
21
21
with :
22
22
node-version : 18
23
23
- name : Install Dependencies
You can’t perform that action at this time.
0 commit comments