Skip to content
This repository has been archived by the owner on Jun 22, 2024. It is now read-only.

Commit

Permalink
ci: additional CI fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
karl-cardenas-coding committed Apr 24, 2023
1 parent 1ffa840 commit 82283f7
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,22 @@ on:
branches: [ main ]


permissions:
contents: read
packages: write


env:
GITHUB_TOKEN: ${{ github.token }}
SVU_VERSION: 1.10.2

permissions:
contents: write

jobs:
tag:
runs-on: ubuntu-latest

outputs:
VERSION: ${{ steps.tag.outputs.VERSION }}
PREV_VERSION: ${{ steps.tag.outputs.PREV_VERSION }}

steps:
- uses: actions/checkout@v3
Expand All @@ -38,16 +41,22 @@ jobs:
- id: tag
run: |
echo "VERSION=$(svu next --tag-mode all-branches)" >> $GITHUB_OUTPUT
echo "PREV_VERSION=$(svu current --tag-mode all-branches)" >> $GITHUB_OUTPUT
git tag "$(svu next --tag-mode all-branches)"
git push --tags
goreleaser:
needs: [tag]
runs-on: ubuntu-latest
env:
GORELEASER_CURRENT_TAG: ${{ needs.tag.outputs.VERSION }}
GORELEASER_PREVIOUS_TAG: ${{ needs.tag.outputs.PREV_VERSION }}

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- run: git fetch --force --tags
- uses: actions/setup-go@v4
with:
Expand All @@ -56,6 +65,7 @@ jobs:
with:
distribution: goreleaser
args: release --clean
version: latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down

0 comments on commit 82283f7

Please sign in to comment.