Skip to content

Commit

Permalink
Fix release workflow by use token as env
Browse files Browse the repository at this point in the history
  • Loading branch information
huxingyi committed Feb 25, 2023
1 parent a091569 commit a06f1d2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ jobs:
run: |
set PATH="%PATH%;C:\Program Files\7-Zip"
- name: Zip executable and push latest build
env:
UPDATE_REPO_TOKEN: ${{ secrets.UPDATE_REPO_TOKEN }}
run: |
7z a Dust3D-win32-x86_64.zip ${GITHUB_WORKSPACE}/application/release/dust3d.exe
7z a Dust3D-win32-x86_64.zip ${GITHUB_WORKSPACE}/../Qt/5.15.2/msvc2019_64/bin/Qt5Svg.dll
Expand All @@ -90,9 +92,9 @@ jobs:
cp ${GITHUB_WORKSPACE}/../Qt/5.15.2/msvc2019_64/plugins/imageformats/qsvg.dll ${GITHUB_WORKSPACE}/imageformats/qsvg.dll
7z a Dust3D-win32-x86_64.zip -r ${GITHUB_WORKSPACE}/imageformats/
7z x Dust3D-win32-x86_64.zip -odust3d-${{ github.event.workflow_run.head_branch }}
git clone https://huxingyi:${{ secrets.UPDATE_REPO_TOKEN }}@github.com/huxingyi/huxingyi.github.io.git
git clone https://huxingyi:$env:UPDATE_REPO_TOKEN@github.com/huxingyi/huxingyi.github.io.git
cd huxingyi.github.io
git remote set-url origin https://huxingyi:${{ secrets.UPDATE_REPO_TOKEN }}@github.com/huxingyi/huxingyi.github.io.git
git remote set-url origin https://huxingyi:$env:UPDATE_REPO_TOKEN@github.com/huxingyi/huxingyi.github.io.git
cp ../Dust3D-win32-x86_64.zip download/dust3d-latest-preview.zip
git config --global user.email ""
git config --global user.name "bot"
Expand Down

0 comments on commit a06f1d2

Please sign in to comment.