From 11eb40a5c84ca588976783eb369485426a3329f7 Mon Sep 17 00:00:00 2001 From: Vasiliy Spassky Date: Tue, 18 Jul 2023 18:01:27 +0300 Subject: [PATCH 1/2] add `release.yml` --- .github/workflows/release.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 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..a88bf0f --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,30 @@ +name: Release + +permissions: + contents: write + +on: + push: + tags: + - v[0-9]+.* + +jobs: + create-release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: taiki-e/create-gh-release-action@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + + upload-assets: + strategy: + matrix: + os: [ubuntu-latest, macos-latest] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v3 + - uses: taiki-e/upload-rust-binary-action@v1 + with: + bin: commitwc + token: ${{ secrets.GITHUB_TOKEN }} From 3c7cc963d6426c62dca888169f71cd6b9b6fecd7 Mon Sep 17 00:00:00 2001 From: Vasiliy Spassky Date: Tue, 18 Jul 2023 18:03:42 +0300 Subject: [PATCH 2/2] amend binary name in GH workflow --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a88bf0f..e77e798 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,5 +26,5 @@ jobs: - uses: actions/checkout@v3 - uses: taiki-e/upload-rust-binary-action@v1 with: - bin: commitwc + bin: happens token: ${{ secrets.GITHUB_TOKEN }}