From 887f5bd27af66a2809fc56659c1d985f1e1fe7f0 Mon Sep 17 00:00:00 2001 From: ohdearaugustin Date: Thu, 13 Oct 2022 21:07:16 +0200 Subject: [PATCH] ci: Add workflow to create GitHub Release on tag (#148) --- .github/workflows/release.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 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..4ecfc36 --- /dev/null +++ b/.github/workflows/release.yml @@ -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