Skip to content

Commit

Permalink
Create release.yml
Browse files Browse the repository at this point in the history
Added release build
  • Loading branch information
moberghammer committed Mar 12, 2024
1 parent 93a69c6 commit 64a3034
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Release zfs-cleaner binaries

on:
release:
types: [created]

permissions:
contents: write
packages: write

jobs:
releases-matrix:
name: Release Go Binary
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux]
goarch: [amd64,arm64]
steps:
- name: Git checkout
uses: actions/checkout@v4
with:
fetch-depth: '0'

- name: Build release
uses: wangyoucao577/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goversion: "https://dl.google.com/go/go1.22.1.linux-amd64.tar.gz"
project_path: "."
binary_name: "zfs-cleaner"
extra_files: LICENSE README.md
sha256sum: true
ldflags: "-X main.version=$(shell git describe --tags --dirty)"

0 comments on commit 64a3034

Please sign in to comment.