Skip to content

Workflow file for this run

name: Create release tarball with vendor
on:
release:
types: [created]
permissions:
contents: write
jobs:
release_build:
runs-on: ubuntu-latest
steps:
- name: 'Checkout Repository'
uses: actions/checkout@v3
- name: 'Setup Go'
uses: actions/setup-go@v4
- name: 'Make the vendor directory'
run: go mod vendor
- name: 'Package the source directory'
run: |
RELEASE="vinegar-${{ github.event.release.tag_name }}"
cd ..
cp -r vinegar $RELEASE
XZ_OPT=-9 tar -Jcf $RELEASE.tar.xz \
--exclude .git \
$RELEASE
- name: Publish to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: "../vinegar-${{ github.event.release.tag_name }}.tar.xz"
overwrite: true
make_latest: false