Skip to content

Commit

Permalink
feat(ci): create tarballs
Browse files Browse the repository at this point in the history
  • Loading branch information
f0e committed Dec 3, 2024
1 parent 669b34b commit af3c8e5
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand All @@ -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 }}
Expand Down

0 comments on commit af3c8e5

Please sign in to comment.