Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update workflow #2458

Merged
merged 1 commit into from
Mar 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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: git@github.com:doocs/leetcode.git
destination-repo: git@gitee.com: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: git@github.com:doocs/leetcode.git
# destination-repo: git@gitee.com: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
Loading