github.com/GoogleCloudPlatform/terraformer@v0.8.18/.github/workflows/release.yaml (about)

     1  name: "tagged-release"
     2  on:
     3    workflow_dispatch:
     4      inputs:
     5        version:
     6          description: Bump Version
     7          required: true
     8  jobs:
     9    tagged-release:
    10      name: "Tagged Release"
    11      runs-on: "ubuntu-latest"
    12  
    13      steps:
    14        - uses: actions/checkout@v2
    15        - name: Install Go
    16          uses: actions/setup-go@v2
    17          with:
    18            go-version: 1.17
    19        - name: Test
    20          run: go build -v && go test ./...
    21        - name: Build for linux
    22          run: go build -o terraformer-all-linux-amd64
    23        - name: Build for mac
    24          run: GOOS=darwin go build -o terraformer-all-darwin-amd64
    25        - name: Build for mac Apple Silicon
    26          run: GOOS=darwin GOARCH=arm64 go build -o terraformer-all-darwin-arm64
    27        - name: Build for windows
    28          run: GOOS=windows go build -o terraformer-all-windows-amd64
    29        - name: Build for all providers
    30          run: go run build/multi-build/main.go
    31  
    32        - uses: "marvinpinto/action-automatic-releases@latest"
    33          with:
    34            repo_token: "${{ secrets.GITHUB_TOKEN }}"
    35            automatic_release_tag: ${{ github.event.inputs.version }}
    36            prerelease: false
    37            files: |
    38              terraformer-*