From 1c8c493ddb90efcc808351f7d60d3eedc93c76d1 Mon Sep 17 00:00:00 2001 From: Alexandr Bogomyakov Date: Tue, 20 Jun 2023 17:31:10 +0300 Subject: [PATCH] Improve actions --- .github/workflows/release.yml | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 11050c3..12f07a7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,6 +29,33 @@ jobs: name: ${{ env.BINARY_NAME }}_x86_64-linux-musl path: target/x86_64-unknown-linux-musl/release/${{ env.BINARY_NAME }} + build_arch: + name: Build Arch Linux package + runs-on: ubuntu-latest + needs: build + permissions: + contents: write + steps: + - uses: actions/checkout@v3 + - name: Install latest nightly + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + target: x86_64-unknown-linux-musl + components: cargo-aur + - name: Build PKGBUILD + uses: actions-rs/cargo@v1 + with: + command: aur + - uses: actions/upload-artifact@v2 + name: Upload artifact + with: + name: PKGBUILD + path: PKGBUILD + + + release: name: Release binary needs: build @@ -44,6 +71,6 @@ jobs: - uses: ncipollo/release-action@v1 name: Update release page with: - artifacts: ${{ steps.download.outputs.download-path }} + artifacts: ${{ steps.download.outputs.download-path }}/* allowUpdates: true body: Static build for x86_64-linux using MUSL