Skip to content
This repository has been archived by the owner on Nov 12, 2023. It is now read-only.

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabio1988 authored Oct 29, 2023
1 parent 9a47543 commit 148a4f0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,19 +52,18 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
release:
if: startsWith(github.ref, 'refs/tags/')
permissions: write-all
runs-on: ubuntu-latest
needs: [ go-build ]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go 1.21
if: startsWith(github.ref, 'refs/tags/')
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- name: Build with xgo
if: startsWith(github.ref, 'refs/tags/')
uses: crazy-max/ghaction-xgo@v3
with:
xgo_version: latest
Expand All @@ -75,13 +74,12 @@ jobs:
x: false
ldflags: -s -w
- name: Create Release
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v1
id: create_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN}}
with:
name: Release ${{ github.ref}}
name: Release $GITHUB_REF_NAME
tag_name: ${{ github.ref }}
draft: true
prerelease: true
Expand Down

0 comments on commit 148a4f0

Please sign in to comment.