Skip to content

Commit

Permalink
add packaging in workflow action
Browse files Browse the repository at this point in the history
  • Loading branch information
sonodima committed Jul 29, 2024
1 parent 0f0f178 commit feae539
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
22 changes: 21 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
publish:
name: Build ${{ matrix.target }}
name: Build - ${{ matrix.target }}
runs-on: ${{ matrix.os }}

strategy:
Expand All @@ -30,3 +30,23 @@ jobs:

- name: Install Additional Tools
run: cargo install cargo-bundle

- name: Build
run: cargo bundle --release --target ${{ matrix.target }}

- name: Package
run: |
cd target/${{ matrix.target }}/release/bundle
mkdir -p dist
if [ "${{ matrix.os }}" == "windows-latest" ]; then
mv msi/*.msi dist
elif [ "${{ matrix.os }}" == "macos-latest" ]; then
mv osx/*.app dist
elif [ "${{ matrix.os }}" == "ubuntu-latest" ]; then
mv -t deb/*.deb rpm/*.rpm dist
fi
- name: Release
uses: softprops/action-gh-release@v2
with:
files: target/${{ matrix.target }}/release/bundle/dist/*
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ webbrowser = "1.0"
name = "BlurThing"
identifier = "com.sonodima.BlurThing"
icon = ["assets/icon/*.png"]
category = "Graphics"
category = "Graphics and Design"

[profile.release]
strip = true
Expand Down

0 comments on commit feae539

Please sign in to comment.