dev: automatically create release on tag push

This commit is contained in:
Ilya Zlobintsev 2024-11-07 22:42:29 +02:00
parent 23ab0e86e8
commit 23abed8ad6

View File

@ -84,7 +84,7 @@ jobs:
name: ${{ matrix.target-os }} name: ${{ matrix.target-os }}
path: release-artifacts/* path: release-artifacts/*
create-release: create-test-release:
needs: build-packages needs: build-packages
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: (github.event_name == 'push' && github.ref == 'refs/heads/master') if: (github.event_name == 'push' && github.ref == 'refs/heads/master')
@ -116,3 +116,25 @@ jobs:
git push -f origin test-build git push -f origin test-build
shell: bash 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