diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 000000000..1004396ab --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,35 @@ +name: Release +on: + create: + tags: + - v*.*.* + +jobs: + release: + name: Release on GitHub + runs-on: ubuntu-latest + steps: + - name: Set up GO + uses: actions/setup-go@v1 + with: + go-version: 1.12 + id: go + - name: set up dep + run: | + export GOBIN=${GOROOT}/bin + curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh + - name: Set GOPATH + run: | + echo "##[set-env name=GOPATH;]$(dirname `pwd`)" + echo "##[add-path]$(dirname `pwd`)/bin" + shell: bash + - name: Check out code + uses: actions/checkout@v1 + with: + path: src/github.com/controlplaneio/kubesec/ + - name: Launch goreleaser + uses: goreleaser/goreleaser-action@master + with: + args: release --debug + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.goreleaser.yml b/.goreleaser.yml index cd288bf07..446f6c681 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -10,16 +10,18 @@ builds: - linux goarch: - amd64 - env: - - CGO_ENABLED=0 + - 386 ignore: - goos: darwin goarch: 386 + env: + - CGO_ENABLED=0 + +checksum: + name_template: '{{ .ProjectName }}_checksums.txt' -archive: - name_template: "{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}" - files: - - none* +archives: + - name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}' snapshot: - name_template: "{{ .Tag }}-next" + name_template: "{{ .Tag }}-next" \ No newline at end of file