diff options
Diffstat (limited to '')
-rw-r--r-- | .github/workflows/release.yml | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 22f268b2..d38be665 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -132,6 +132,10 @@ jobs: run: cmake --build ${{github.workspace}}/build --config {{$env.BUILD_TYPE}} -- -j 2 if: matrix.os == 'ubuntu-16.04' || matrix.os == 'macos-latest' + - name: Get Short SHA of Commit + id: vars + run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" + - name: Package App Bundle (macOS) run: | macdeployqt ${{github.workspace}}/build/release/GpgFrontend.app @@ -139,6 +143,7 @@ jobs: hdiutil create ${{github.workspace}}/build/tmp/tmp.dmg -ov -volname "GpgFrontend" -fs HFS+ -srcfolder ${{github.workspace}}/build/release/ mkdir ${{github.workspace}}/build/artifactOut hdiutil convert ${{github.workspace}}/build/tmp/tmp.dmg -format UDZO -o ${{github.workspace}}/build/artifactOut/GpgFrontend.dmg + mv ${{github.workspace}}/build/artifactOut/GpgFrontend.dmg ${{github.workspace}}/build/artifactOut/GpgFrontend-${{steps.vars.outputs.sha_short}}-x86_64.dmg if: matrix.os == 'macos-latest' - name: Package App Image (Linux) @@ -150,7 +155,7 @@ jobs: ./linuxdeployqt-continuous-x86_64.AppImage ${{github.workspace}}/build/release/gpgfrontend/usr/share/applications/*.desktop -appimage if: matrix.os == 'ubuntu-16.04' - - name: Configure CMake & Build Binary(Windows) + - name: Configure CMake & Build Binary (Windows) shell: msys2 {0} run: | cd $(echo "/${{github.workspace}}" | sed 's/\\/\//g' | sed 's/://') @@ -158,11 +163,9 @@ jobs: cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DEXECUTABLE_OUTPUT_PATH=${{env.EXECUTABLE_OUTPUT_PATH}} .. # Build your program with the given configuration cmake --build . --config ${{env.BUILD_TYPE}} -- -j 2 + zip -q -r GpgFrontend-${{steps.vars.outputs.sha_short}}-x86_64.zip ./release if: matrix.os == 'windows-latest' - - name: Get Short SHA of Commit - id: vars - run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" - name: Upload Artifact(Linux) uses: actions/upload-artifact@master @@ -182,5 +185,5 @@ jobs: uses: actions/upload-artifact@master with: name: gpgfrontend-${{matrix.os}}-${{env.BUILD_TYPE}}-${{steps.vars.outputs.sha_short}} - path: ${{github.workspace}}/build/release/* + path: ${{github.workspace}}/build/GpgFrontend*.zip* if: matrix.os == 'windows-latest' |