mirror of
https://github.com/itchyny/mmv.git
synced 2025-12-26 14:14:57 +08:00
migrate from deprecated create-release action
This commit is contained in:
parent
467ba873c3
commit
6a82806d14
2 changed files with 3 additions and 17 deletions
13
.github/workflows/release.yaml
vendored
13
.github/workflows/release.yaml
vendored
|
|
@ -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/*'
|
||||
|
|
|
|||
7
Makefile
7
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue