修复win10可能无法截图 #51
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Clone and Push to Coding.net | |
on: | |
push: | |
branches: | |
- '**' | |
jobs: | |
clone-and-push: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 # Fetch all history for all branches and tags | |
- name: Clone GitHub repository | |
run: | | |
git clone --mirror https://github.com/ok-oldking/ok-wuthering-waves.git | |
cd ok-wuthering-waves.git | |
- name: Set up Git credentials | |
env: | |
CODING_USERNAME: ${{ secrets.CODING_USERNAME }} | |
CODING_PASSWORD: ${{ secrets.CODING_PASSWORD }} | |
run: | | |
git config --global credential.helper store | |
echo "https://${CODING_USERNAME}:${CODING_PASSWORD}@e.coding.net" > ~/.git-credentials | |
- name: Push to Coding.net | |
run: | | |
git remote add coding https://e.coding.net/g-frfh1513/ok-wuthering-waves/ok-wuthering-waves.git | |
git push --mirror coding --force |