Skip to content

Commit 7ffeeea

Browse files
committed
Update artifacts name
1 parent 47b30ea commit 7ffeeea

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ jobs:
3434
run: |
3535
sudo apt-get install -y libfuse2
3636
cd ${GITHUB_WORKSPACE} && sh ./ci/appimage/bundle.sh
37-
mv Dust3D-x86_64.AppImage dust3d-${{env.GITHUB_REF_NAME}}.AppImage
37+
mv Dust3D-x86_64.AppImage dust3d-${{ github.event.workflow_run.head_branch }}.AppImage
3838
- name: Upload AppImage
3939
uses: actions/upload-artifact@v3
4040
with:
41-
name: dust3d-${{env.GITHUB_REF_NAME}}.AppImage
42-
path: dust3d-${{env.GITHUB_REF_NAME}}.AppImage
41+
name: dust3d-${{ github.event.workflow_run.head_branch }}.AppImage
42+
path: dust3d-${{ github.event.workflow_run.head_branch }}.AppImage
4343
win32-msvc-upload:
4444
if: ${{ github.event.workflow_run.conclusion == 'success' }}
4545
runs-on: windows-2019
@@ -89,13 +89,13 @@ jobs:
8989
cp ${GITHUB_WORKSPACE}/../Qt/5.15.2/msvc2019_64/plugins/imageformats/qjpeg.dll ${GITHUB_WORKSPACE}/imageformats/qjpeg.dll
9090
cp ${GITHUB_WORKSPACE}/../Qt/5.15.2/msvc2019_64/plugins/imageformats/qsvg.dll ${GITHUB_WORKSPACE}/imageformats/qsvg.dll
9191
7z a Dust3D-win32-x86_64.zip -r ${GITHUB_WORKSPACE}/imageformats/
92-
7z x Dust3D-win32-x86_64.zip -odust3d-${{env.GITHUB_REF_NAME}}
92+
7z x Dust3D-win32-x86_64.zip -odust3d-${{ github.event.workflow_run.head_branch }}
9393
shell: bash
9494
- name: Upload zip
9595
uses: actions/upload-artifact@v3
9696
with:
97-
name: dust3d-${{env.GITHUB_REF_NAME}}
98-
path: dust3d-${{env.GITHUB_REF_NAME}}/
97+
name: dust3d-${{ github.event.workflow_run.head_branch }}
98+
path: dust3d-${{ github.event.workflow_run.head_branch }}/
9999
macos-upload:
100100
if: ${{ github.event.workflow_run.conclusion == 'success' }}
101101
runs-on: macos-latest
@@ -114,10 +114,10 @@ jobs:
114114
make -j`nproc`
115115
- name: Generate DMG
116116
run: |
117-
mv ${GITHUB_WORKSPACE}/application/dust3d.app dust3d-${{env.GITHUB_REF_NAME}}.app
118-
macdeployqt dust3d-${{env.GITHUB_REF_NAME}}.app -dmg
117+
mv ${GITHUB_WORKSPACE}/application/dust3d.app dust3d-${{ github.event.workflow_run.head_branch }}.app
118+
macdeployqt dust3d-${{ github.event.workflow_run.head_branch }}.app -dmg
119119
- name: Upload DMG
120120
uses: actions/upload-artifact@v3
121121
with:
122-
name: dust3d-${{env.GITHUB_REF_NAME}}.dmg
123-
path: dust3d-${{env.GITHUB_REF_NAME}}.dmg
122+
name: dust3d-${{ github.event.workflow_run.head_branch }}.dmg
123+
path: dust3d-${{ github.event.workflow_run.head_branch }}.dmg

0 commit comments

Comments
 (0)