From 23abed8ad6c718b5158dc637a83f5faec80a2607 Mon Sep 17 00:00:00 2001 From: Ilya Zlobintsev Date: Thu, 7 Nov 2024 22:42:29 +0200 Subject: [PATCH] dev: automatically create release on tag push --- .github/workflows/build-packages.yaml | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-packages.yaml b/.github/workflows/build-packages.yaml index eb4f528..1383994 100644 --- a/.github/workflows/build-packages.yaml +++ b/.github/workflows/build-packages.yaml @@ -84,7 +84,7 @@ jobs: name: ${{ matrix.target-os }} path: release-artifacts/* - create-release: + create-test-release: needs: build-packages runs-on: ubuntu-latest if: (github.event_name == 'push' && github.ref == 'refs/heads/master') @@ -116,3 +116,25 @@ jobs: git push -f origin test-build shell: bash + + create-stable-release: + needs: build-packages + runs-on: ubuntu-latest + if: (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')) + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Download artifacts + uses: actions/download-artifact@v3 + with: + path: downloaded-artifacts/ + + - name: Create release + uses: ncipollo/release-action@v1.12.0 + with: + artifacts: "downloaded-artifacts/*/*" + name: ${{ github.ref_name }} + tag: ${{ github.ref_name }} + body: ${{ github.ref_name }} changelog goes here