ci: Add workflow to create GitHub Release on tag (#148)

This commit is contained in:
ohdearaugustin 2022-10-13 21:07:16 +02:00 committed by GitHub
parent a1214af33a
commit 887f5bd27a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

28
.github/workflows/release.yml vendored Normal file
View File

@ -0,0 +1,28 @@
---
name: Release
on:
push:
tags:
- "v*.*.*" # triggers only if push new tag version
workflow_dispatch:
jobs:
merge-branch:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Merge develop to master
run: |
git config --local user.email "actions@github.com"
git config --local user.name "action-user"
git checkout -b main
git merge origin/develop
git push --set-upstream origin main
- name: Release
uses: softprops/action-gh-release@v1
with:
generate_release_notes: true