diff --git a/.github/workflows/publish_binaries.yaml b/.github/workflows/publish_binaries.yaml new file mode 100644 index 00000000..e7102938 --- /dev/null +++ b/.github/workflows/publish_binaries.yaml @@ -0,0 +1,29 @@ +name: Publish Binaries + +on: + push: + branches: + - "!*" + tags: + - "v*" + +jobs: + goreleaser: + runs-on: ubuntu-latest + steps: + - + name: Checkout + uses: actions/checkout@v1 + - + name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: ~1.18.1 + - + name: Run GoReleaser + uses: goreleaser/goreleaser-action@v1 + with: + version: latest + args: release --rm-dist + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/test_binary_builds.yaml b/.github/workflows/test_binary_builds.yaml new file mode 100644 index 00000000..efeb16b1 --- /dev/null +++ b/.github/workflows/test_binary_builds.yaml @@ -0,0 +1,26 @@ +name: Test Binary Builds + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + goreleaser: + runs-on: ubuntu-latest + steps: + - + name: Checkout + uses: actions/checkout@v1 + - + name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: ~1.18.1 + - + name: Run GoReleaser + uses: goreleaser/goreleaser-action@v1 + with: + version: latest + args: release --rm-dist --snapshot diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 00000000..7f04e75f --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,18 @@ +project_name: helmfile +builds: + - id: helmfile + main: . + env: + - CGO_ENABLED=0 + ldflags: + - -s -w -X github.com/helmfile/helmfile/pkg/app/version.Version={{.Version}} + goos: + - darwin + - linux + - windows + goarch: + - amd64 + - arm64 + - "386" +changelog: + use: github-native