Skip to content

Commit

Permalink
create the tag in a separate job so the release job can find the new tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Piszmog committed Jan 4, 2022
1 parent 2eeb3dd commit a26192e
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a26192e

Please sign in to comment.