Skip to content

Commit

Permalink
release packaging with ci
Browse files Browse the repository at this point in the history
Signed-off-by: Robin Appelman <robin@icewind.nl>
  • Loading branch information
icewind1991 committed Apr 13, 2021
1 parent 349b3a0 commit c108b7f
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
release:
types: [created]

env:
APP_NAME: notify_push

jobs:
release-binaries:
Expand Down Expand Up @@ -37,3 +39,36 @@ jobs:
file: target/${{ matrix.target }}/release/notify_push
asset_name: notify_push-${{ matrix.target }}
tag: ${{ github.ref }}

package:
name: Package release
runs-on: ubuntu-20.04
steps:
- name: musl-tools
run: |
sudo apt-get install musl-tools
- name: Checkout code
uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
target: x86_64-unknown-linux-musl
- name: cross
run: |
cargo install cross
- name: Setup krankler
run: |
wget https://github.com/ChristophWurst/krankerl/releases/download/v0.13.0/krankerl
chmod +x krankerl
- name: Package app
run: |
./krankerl package
- name: Upload binary to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/artifacts/${{ env.APP_NAME }}.tar.gz
asset_name: ${{ env.APP_NAME }}.tar.gz
tag: ${{ github.ref }}

0 comments on commit c108b7f

Please sign in to comment.