Skip to content

Commit

Permalink
Update release workflow shell environment
Browse files Browse the repository at this point in the history
  • Loading branch information
huxingyi committed Feb 26, 2023
1 parent 0d287bb commit c5a1aad
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,7 @@ jobs:
- name: Set environment variable
run: |
set PATH="%PATH%;C:\Program Files\7-Zip"
- name: Zip executable and push latest build
env:
UPDATE_REPO_TOKEN: ${{ secrets.UPDATE_REPO_TOKEN }}
- name: Zip executable
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 @@ -92,9 +90,15 @@ 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:${UPDATE_REPO_TOKEN}@github.com/huxingyi/huxingyi.github.io.git
shell: bash
- name: Push latest build
env:
UPDATE_REPO_TOKEN: ${{ secrets.UPDATE_REPO_TOKEN }}
run: |
cd $env:GITHUB_WORKSPACE/application
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://${UPDATE_REPO_TOKEN}@github.com/huxingyi/huxingyi.github.io.git
git remote set-url origin https://$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 All @@ -103,7 +107,6 @@ jobs:
git commit -m "Update latest windows build at ${timestamp}"
git push origin HEAD
cd ../
shell: bash
- name: Upload zip
uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit c5a1aad

Please sign in to comment.