mirror of
https://github.com/ok-oldking/ok-wuthering-waves.git
synced 2025-06-05 08:25:28 +00:00
优化更新流程
This commit is contained in:
parent
aa69a4b05a
commit
ae48d7c11e
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -60,12 +60,14 @@ jobs:
|
|||||||
CODING_PASSWORD: ${{ secrets.CODING_PASSWORD }}
|
CODING_PASSWORD: ${{ secrets.CODING_PASSWORD }}
|
||||||
run: |
|
run: |
|
||||||
git config --global credential.helper store
|
git config --global credential.helper store
|
||||||
|
git config --global credential.helper manager-core
|
||||||
$credentialsPath = [System.IO.Path]::Combine($env:HOMEPATH, ".git-credentials")
|
$credentialsPath = [System.IO.Path]::Combine($env:HOMEPATH, ".git-credentials")
|
||||||
if (-not (Test-Path -Path $credentialsPath -PathType Leaf)) {
|
if (-not (Test-Path -Path $credentialsPath -PathType Leaf)) {
|
||||||
New-Item -ItemType File -Force -Path $credentialsPath
|
New-Item -ItemType File -Force -Path $credentialsPath
|
||||||
}
|
}
|
||||||
echo "https://${CODING_USERNAME}:${CODING_PASSWORD}@e.coding.net" > $env:HOMEPATH\.git-credentials
|
echo "https://${CODING_USERNAME}:${CODING_PASSWORD}@e.coding.net" > $env:HOMEPATH\.git-credentials
|
||||||
git remote add coding https://${CODING_USERNAME}:${CODING_PASSWORD}@e.coding.net/g-frfh1513/ok-wuthering-waves/ok-wuthering-waves.git
|
git remote add coding https://${CODING_USERNAME}:${CODING_PASSWORD}@e.coding.net/g-frfh1513/ok-wuthering-waves/ok-wuthering-waves.git
|
||||||
|
git remote set-url coding https://YOUR_USERNAME:YOUR_TOKEN@e.coding.net/g-frfh1513/ok-wuthering-waves/ok-wuthering-waves.git
|
||||||
git push coding --force
|
git push coding --force
|
||||||
|
|
||||||
- name: Push to GitHub update
|
- name: Push to GitHub update
|
||||||
|
Loading…
x
Reference in New Issue
Block a user