From 454ea2ff51498d5efadd3c11a9b0b58922873f21 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Tue, 9 Jun 2020 09:49:50 -0700 Subject: [PATCH] ;ci: a draft release-creating workflow, on push of v* tag --- .github/workflows/release.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 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 000000000..5390d0fab --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,30 @@ +# Create a github release, when a "v*" tag is pushed to master. + +# https://github.com/actions/create-release + +name: Create Release + +on: + push: + tags: [ 'v*' ] + branches: [ master ] + +jobs: + build: + name: Create Release + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + body: | + Release ${{ github.ref }} + draft: true + prerelease: false