From a26192e1a3783e7d4f640d5f27f21054ccb148e6 Mon Sep 17 00:00:00 2001 From: Piszmog Date: Tue, 4 Jan 2022 14:47:02 -0700 Subject: [PATCH] create the tag in a separate job so the release job can find the new tag --- .github/workflows/release.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1cfac1b..aef83af 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,19 +9,26 @@ on: permissions: contents: write jobs: - release: - name: Release + tag: + name: Tag runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v2 - with: - fetch-depth: 0 - name: Create Tag uses: negz/create-tag@v1 with: version: ${{ github.event.inputs.version }} token: ${{ secrets.GITHUB_TOKEN }} + release: + name: Release + runs-on: ubuntu-latest + needs: [ tag ] + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 - name: Set up Go uses: actions/setup-go@v2 with: