Skip to content
Permalink
Browse files

Merge pull request #40706 from Gustry/github_release

Create a GitHub release when there is a tag
  • Loading branch information
m-kuhn committed Dec 24, 2020
2 parents cd5560c + 4b53314 commit 1ba708ee95e56cdf18e819acb02ebe3d218d9017
Showing with 31 additions and 0 deletions.
  1. +31 −0 .github/workflows/release.yml
@@ -0,0 +1,31 @@
name: Release 🚀

on:
push:
tags:
- 'final-*_*_*'

jobs:
build:
name: Create Release
runs-on: ubuntu-latest
steps:

- name: Prepare release names
run: |
VERSION_CHANGELOG=$(echo ${{ github.ref }} | cut -d '-' -f 2 | cut -d '_' -f1,2 | sed 's/_/\./g')
echo "version_url=https://changelog.qgis.org/en/qgis/version/${VERSION_CHANGELOG}" >> $GITHUB_ENV
VERSION_NAME=$(echo ${{ github.ref }} | cut -d '-' -f 2 | sed 's/_/\./g')
echo "version_name=${VERSION_NAME}" >> $GITHUB_ENV
- name: Create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ env.version_name }}
body: ${{ env.version_url }}
draft: false
prerelease: false

0 comments on commit 1ba708e

Please sign in to comment.
You can’t perform that action at this time.