From 496caafa464a52ce5578a59ca2b7d9bf83cf1d4d Mon Sep 17 00:00:00 2001 From: Danil Davydov <2davy@pm.me> Date: Sat, 21 Oct 2023 01:17:16 +0300 Subject: [PATCH] ci 'build on tag' --- .github/workflows/release.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 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..4165834 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,29 @@ +name: Release + +permissions: + contents: write + +on: + push: + tags: + - v*.* + +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: windows-latest + steps: + - uses: actions/checkout@v4 + - uses: taiki-e/upload-rust-binary-action@v1 + with: + bin: txcproxy + archive: $bin-$tag + token: ${{ secrets.GITHUB_TOKEN }}