diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 58535114..923a496e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -55,9 +55,11 @@ jobs: done; - name: Create DMG file run: hdiutil create -format UDZO -srcfolder editor/editor.app editor/editor.dmg + - name: Get the version + run: echo "VERSION=${GITHUB_REF_NAME#v}" >> $GITHUB_ENV - uses: actions/upload-artifact@v3 with: - name: rocket-editor-macos + name: rocket-editor-${{ env.VERSION }}-macos path: editor/editor.dmg build-windows: name: Build (Windows) @@ -73,7 +75,9 @@ jobs: run: | qmake -tp vc editor/editor.pro msbuild editor.vcxproj /v:minimal /property:Configuration=Release /nologo + - name: Get the version + run: echo "version=$($env:GITHUB_REF_NAME.trimstart("v"))" >> $env:GITHUB_ENV - uses: actions/upload-artifact@v3 with: - name: rocket-editor-windows + name: rocket-editor-${{ env.VERSION }}-windows path: release/editor.exe