diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..8810663 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,16 @@ +name: Release + +on: + push: + tags: ["**"] + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - run: echo ::set-output name=tag::${GITHUB_REF/refs\/tags\//} + id: get_tag + - run: gh release create '${{ steps.get_tag.outputs.tag }}' --draft --notes 'See also the [CHANGELOG](https://github.com/${{ github.repository }}/blob/${{ steps.get_tag.outputs.tag }}/CHANGELOG.md).' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}