Generate release tarball in GitHub Actions

This commit is contained in:
Anna “CyberTailor” 2022-02-26 11:42:42 +05:00
parent ea9c7f214a
commit ae6bdb0208
No known key found for this signature in database
GPG Key ID: E7B76EDC50864BB1
2 changed files with 12 additions and 1 deletions

View File

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

View File

@ -5,7 +5,7 @@ env:
before:
hooks:
- go mod download
- go mod vendor
- go generate ./...
builds: