migrate from deprecated create-release action

This commit is contained in:
itchyny 2023-04-09 12:32:45 +09:00
parent 467ba873c3
commit 6a82806d14
2 changed files with 3 additions and 17 deletions

View file

@ -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/*'

View file

@ -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