Skip to content

Commit

Permalink
chore: update workflow (doocs#2458)
Browse files Browse the repository at this point in the history
  • Loading branch information
yanglbme authored Mar 18, 2024
1 parent e2b21d8 commit 6f443df
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 23 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,23 +59,23 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./site

sync:
runs-on: ubuntu-latest
needs: deploy
if: github.repository == 'doocs/leetcode'
steps:
- name: Sync to gitee.com
uses: wearerequired/git-mirror-action@master
env:
SSH_PRIVATE_KEY: ${{ secrets.RSA_PRIVATE_KEY }}
with:
source-repo: [email protected]:doocs/leetcode.git
destination-repo: [email protected]:Doocs/leetcode.git
# sync:
# runs-on: ubuntu-latest
# needs: deploy
# if: github.repository == 'doocs/leetcode'
# steps:
# - name: Sync to gitee.com
# uses: wearerequired/git-mirror-action@master
# env:
# SSH_PRIVATE_KEY: ${{ secrets.RSA_PRIVATE_KEY }}
# with:
# source-repo: [email protected]:doocs/leetcode.git
# destination-repo: [email protected]:Doocs/leetcode.git

- name: Build Gitee Pages
uses: yanglbme/gitee-pages-action@main
with:
gitee-username: yanglbme
gitee-password: ${{ secrets.GITEE_PASSWORD }}
gitee-repo: doocs/leetcode
branch: gh-pages
# - name: Build Gitee Pages
# uses: yanglbme/gitee-pages-action@main
# with:
# gitee-username: yanglbme
# gitee-password: ${{ secrets.GITEE_PASSWORD }}
# gitee-repo: doocs/leetcode
# branch: gh-pages
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@

## 站点

- GitHub Pages: https://doocs.github.io/leetcode
- Gitee Pages: https://doocs.gitee.io/leetcode
https://doocs.github.io/leetcode

## 算法全解

Expand Down
3 changes: 1 addition & 2 deletions README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ This project contains solutions for problems from LeetCode, "Coding Interviews (

## Sites

- GitHub Pages: https://doocs.github.io/leetcode
- Gitee Pages: https://doocs.gitee.io/leetcode
https://doocs.github.io/leetcode

## Solutions

Expand Down

0 comments on commit 6f443df

Please sign in to comment.