Skip to content

Commit

Permalink
fix:修改工作流文件
Browse files Browse the repository at this point in the history
  • Loading branch information
zwtesttt committed May 29, 2024
1 parent e03f385 commit b20245d
Showing 1 changed file with 3 additions and 28 deletions.
31 changes: 3 additions & 28 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,35 +31,10 @@ jobs:
echo "EXT=" >> $GITHUB_ENV
fi
- name: Build
run: make build
env:
GO: go
VERSION: ${{ github.ref_name }}
- name: Upload Build Artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.platform }}-${{ matrix.arch }}-build
path: build/*-${{ matrix.platform }}-${{ matrix.arch }}-${{ github.ref_name }}*

create-release:
needs: build-and-release
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Download Build Artifacts
uses: actions/download-artifact@v3
with:
name: ${{ matrix.platform }}-${{ matrix.arch }}-build
path: build

- name: Create GitHub Release
- name: Build and Create GitHub Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
TAG=${GITHUB_REF/refs\/tags\//}
gh release create "$TAG" build/* --title "$TAG" --notes "Release version $TAG"
make build
gh release create "$TAG" build/*-${{ matrix.platform }}-${{ matrix.arch }}-$TAG --title "$TAG" --notes "Release version $TAG"

0 comments on commit b20245d

Please sign in to comment.