diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index bcedfc6..4d763f7 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -102,7 +102,7 @@ jobs: else echo "cli_source=blur-cli" >> $GITHUB_OUTPUT echo "cli_binary=blur-cli-$configuration" >> $GITHUB_OUTPUT - + echo "gui_source=blur" >> $GITHUB_OUTPUT echo "gui_binary=blur-$configuration" >> $GITHUB_OUTPUT fi @@ -124,7 +124,6 @@ jobs: --volname "Blur Installer" \ --icon "Blur.app" 200 190 \ --hide-extension "Blur.app" \ - --app-drop-link 600 185 \ "${{ steps.binary-names.outputs.gui_binary }}" \ "source_folder" @@ -140,10 +139,29 @@ jobs: if [[ "$RUNNER_OS" == "Linux" || "$RUNNER_OS" == "macOS" ]]; then chmod +x "${{ steps.binary-names.outputs.cli_binary }}" - chmod +x "${{ steps.binary-names.outputs.gui_binary }}" + tar -czf "${{ steps.binary-names.outputs.configuration }}-cli.tar.gz" "${{ steps.binary-names.outputs.cli_binary }}" + + echo "cli_binary=${{ steps.binary-names.outputs.configuration }}-cli.tar.gz" >> $GITHUB_OUTPUT + + if [[ "$RUNNER_OS" == "Linux" ]]; then + chmod +x "${{ steps.binary-names.outputs.gui_binary }}" + tar -czf "${{ steps.binary-names.outputs.configuration }}-gui.tar.gz" "${{ steps.binary-names.outputs.gui_binary }}" + + echo "gui_binary=${{ steps.binary-names.outputs.configuration }}-gui.tar.gz" >> $GITHUB_OUTPUT + fi fi - - name: Upload Binaries + - name: Upload artifacts + if: runner.os == 'Windows' + uses: actions/upload-artifact@v3 + with: + name: Blur-${{ steps.binary-names.outputs.configuration }} + path: | + ${{ steps.binary-names.outputs.build_dir }}/${{ steps.binary-names.outputs.cli_binary }} + ${{ steps.binary-names.outputs.build_dir }}/${{ steps.binary-names.outputs.gui_binary }} + + - name: Upload artifacts + if: runner.os != 'Windows' uses: actions/upload-artifact@v3 with: name: Blur-${{ steps.binary-names.outputs.configuration }}