From d763af36e057cc5b8ae84aa4dd33fbb864cb39ae Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 15 Jul 2020 00:21:54 +0100 Subject: [PATCH] Create a new release when a tag is pushed --- .github/workflows/create-release.yaml | 30 +++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/create-release.yaml diff --git a/.github/workflows/create-release.yaml b/.github/workflows/create-release.yaml new file mode 100644 index 0000000..e2fc75c --- /dev/null +++ b/.github/workflows/create-release.yaml @@ -0,0 +1,30 @@ +--- +name: Release + +on: + push: + tags: + +jobs: + build: + name: Create a new release + + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: "Determine tag" + id: "determine-tag" + run: "echo \"::set-output name=tag::${GITHUB_REF#refs/tags/}\"" + + - name: "Create release" + uses: "actions/create-release@v1.1.1" + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + with: + draft: false + prerelease: false + release_name: "${{ steps.determine-tag.outputs.tag }}" + tag_name: "${{ steps.determine-tag.outputs.tag }}"