From aa69a4b05aed78de94a4e66033a4bb03517991a6 Mon Sep 17 00:00:00 2001 From: "firedcto@gmail.com" Date: Fri, 15 Nov 2024 18:22:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=9B=B4=E6=96=B0=E6=B5=81?= =?UTF-8?q?=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e871302..32f1c2e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -54,7 +54,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Set up coding Git credentials + - name: Push to Coding.net env: CODING_USERNAME: ${{ secrets.CODING_USERNAME }} CODING_PASSWORD: ${{ secrets.CODING_PASSWORD }} @@ -64,11 +64,8 @@ jobs: if (-not (Test-Path -Path $credentialsPath -PathType Leaf)) { New-Item -ItemType File -Force -Path $credentialsPath } - "https://${{ secrets.CODING_USERNAME }}:${{ secrets.CODING_PASSWORD }}@e.coding.net" | Out-File -FilePath $credentialsPath -Encoding ASCII - - - name: Push to Coding.net - run: | - git remote add coding https://e.coding.net/g-frfh1513/ok-wuthering-waves/ok-wuthering-waves.git + 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 push coding --force - name: Push to GitHub update