diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 71b1d54..2ec95ca 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -22,14 +22,7 @@ jobs: - name: Cross build run: make cross - name: Create Release - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ncipollo/release-action@v1 with: - tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} - - name: Upload - run: make upload - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + name: Release ${{ github.ref_name }} + artifacts: 'goxz/*' diff --git a/Makefile b/Makefile index 7118747..6301fb1 100644 --- a/Makefile +++ b/Makefile @@ -62,10 +62,3 @@ bump: $(GOBIN)/gobump git commit -am "bump up version to $(VERSION)" git tag "v$(VERSION)" git push --atomic origin main tag "v$(VERSION)" - -.PHONY: upload -upload: $(GOBIN)/ghr - ghr "v$(VERSION)" goxz - -$(GOBIN)/ghr: - go install github.com/tcnksm/ghr@latest