mirror of
https://github.com/makeworld-the-better-one/amfora.git
synced 2024-09-11 14:55:51 +03:00
Generate release tarball in GitHub Actions
This commit is contained in:
parent
ea9c7f214a
commit
ae6bdb0208
11
.github/workflows/goreleaser.yml
vendored
11
.github/workflows/goreleaser.yml
vendored
@ -24,3 +24,14 @@ jobs:
|
||||
args: release --rm-dist
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GH_REPOS }}
|
||||
- name: Generate release tarball
|
||||
run: |
|
||||
VERSION=${GITHUB_REF_NAME#v}
|
||||
tar czf amfora-${VERSION}.tar.gz --transform "s,^,amfora-${VERSION}/," --exclude dist *
|
||||
- name: Upload release tarball
|
||||
uses: softprops/action-gh-release@master
|
||||
with:
|
||||
files: amfora-*.tar.gz
|
||||
append_body: true
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GH_REPOS }}
|
||||
|
@ -5,7 +5,7 @@ env:
|
||||
|
||||
before:
|
||||
hooks:
|
||||
- go mod download
|
||||
- go mod vendor
|
||||
- go generate ./...
|
||||
|
||||
builds:
|
||||
|
Loading…
Reference in New Issue
Block a user