From 55c7daa75708c2106aea74672d39aa218322b1c2 Mon Sep 17 00:00:00 2001 From: Eric Phillips Date: Thu, 7 May 2026 22:05:38 -0600 Subject: [PATCH] release action --- .github/workflows/release.yml | 39 +++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..363261c --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,39 @@ +name: release + +on: + push: + tags: + - 'v*' + +jobs: + release: + name: Release + runs-on: ubuntu-latest + + steps: + - name: Check out code + uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version-file: './go.mod' + + - name: Build + run: go build -o deploy/pkgstash ./cmd/server + + - name: Package + run: tar cvzf pkgstash-${{ github.ref_name }}-x86_64.tar.gz ./deploy/ + + - name: Generate checksum + run: | + NAME=pkgstash-${{ github.ref_name }}-x86_64.tar.gz + sha256sum $NAME > $NAME.checksum + + - name: Create Release + id: create_release + uses: softprops/action-gh-release@v3 + with: + files: | + pkgstash-${{ github.ref_name }}-x86_64.tar.gz + pkgstash-${{ github.ref_name }}-x86_64.tar.gz.checksum