Skip to content

Commit

Permalink
fix: 调换 action 执行顺序
Browse files Browse the repository at this point in the history
  • Loading branch information
WindowsSov8forUs committed Jun 20, 2024
1 parent 782eba8 commit d64c25c
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,6 @@ jobs:
echo $PATH
echo $(go env GOPATH)
- name: Build binaries
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release
env:
GITHUB_TOKEN: ${{ secrets.PAT }}

- name: Check if release exists
id: check_release
run: |
Expand All @@ -42,6 +34,15 @@ jobs:
echo "RELEASE_ID=$RELEASE_ID" >> $GITHUB_ENV
echo "IS_PRERELEASE=$IS_PRERELEASE" >> $GITHUB_ENV
- name: Build binaries
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release
env:
GITHUB_TOKEN: ${{ secrets.PAT }}
IS_PRERELEASE: ${{ env.IS_PRERELEASE }}

# - name: Create Release
# id: create_release
# uses: actions/create-release@v1
Expand Down

0 comments on commit d64c25c

Please sign in to comment.