Skip to content

Commit

Permalink
release
Browse files Browse the repository at this point in the history
  • Loading branch information
ericogr committed Oct 25, 2021
1 parent 29d92cd commit 38bb937
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 1 deletion.
34 changes: 33 additions & 1 deletion .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,36 @@ jobs:
name: pulumi-${{ env.PROVIDER }}
path: ${{ github.workspace }}/bin
- name: Test Provider Library
run: make test_provider
run: make test_provider
publish:
name: publish
needs: build_sdk
runs-on: ubuntu-latest
strategy:
matrix:
goversion: [1.16.x]
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.goversion }}
- name: Install pulumictl
uses: jaxxstorm/[email protected]
with:
repo: pulumi/pulumictl
- name: Install Pulumi CLI
uses: pulumi/[email protected]
with:
pulumi-version: 3.0.0-rc.1
- name: Set Release Version
run: echo "GORELEASER_CURRENT_TAG=v$(pulumictl get version --language
generic)" >> $GITHUB_ENV
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
args: -p 1 -f .goreleaser.yml --rm-dist --skip-validate --timeout 60m0s
version: latest
28 changes: 28 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
archives:
- id: archive
name_template: '{{ .Binary }}-{{ .Tag }}-{{ .Os }}-{{ .Arch }}'
before:
hooks:
- make gen
builds:
- binary: pulumi-slack
dir: provider
env:
- CGO_ENABLED=0
- GO111MODULE=on
goarch:
- amd64
- arm64
goos:
- darwin
- windows
- linux
ldflags:
- -X github.com/totvs/pulumi-slack/provider/pkg/version.Version={{.Tag}}
main: ./cmd/pulumi-slack/
changelog:
skip: true
release:
disable: false
snapshot:
name_template: '{{ .Tag }}-SNAPSHOT'

0 comments on commit 38bb937

Please sign in to comment.