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
with:
go-version: '^1.20'
- name: 'Make the vendor directory'
run: go mod vendor
- name: 'Package the source directory'
run: |
RELEASE="vinegar-${{ github.ref_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.ref_name }}.tar.xz"
overwrite: true
make_latest: false