From 339f65a24f87f33e33d4058540009627d15c4ea8 Mon Sep 17 00:00:00 2001 From: Quantum Date: Mon, 14 Oct 2024 00:29:40 -0400 Subject: [PATCH] Add release asset CI script --- .github/workflows/release.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..3190153 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,25 @@ +on: + push: + tags: + - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 + +name: Publish binaries on release + +jobs: + build: + name: Publish binaries + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Build project + run: | + cargo build --release + - name: Upload binaries to release + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: target/release/ntfy-run + asset_name: ntfy-run-amd64 + tag: ${{ github.ref }} + overwrite: true