From f968807e2b6d28533c64ac2fc451c0849b7f2237 Mon Sep 17 00:00:00 2001 From: Jacob Rosenthal Date: Sat, 9 Mar 2024 11:52:38 -0700 Subject: [PATCH] add release --- .github/actions/release.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/actions/release.yml diff --git a/.github/actions/release.yml b/.github/actions/release.yml new file mode 100644 index 0000000..52977c5 --- /dev/null +++ b/.github/actions/release.yml @@ -0,0 +1,29 @@ +name: Release + +permissions: + contents: write + +on: + push: + tags: + - v[0-9]+.* + +jobs: + create-release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: taiki-e/create-gh-release-action@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + + upload-assets: + needs: create-release + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: taiki-e/upload-rust-binary-action@v1 + with: + manifest-path: teleprobe/Cargo.toml + bin: teleprobe + token: ${{ secrets.GITHUB_TOKEN }}