diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5d3422536a983be5ad41e0a0dce44d67741b3f4a..42d3396bc207938876576773ff921e2a79b82cae 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,6 +4,8 @@ on: release: types: [created] +env: + APP_NAME: notify_push jobs: release-binaries: @@ -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 }} \ No newline at end of file