File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,21 +17,27 @@ jobs:
1717 go-version : 1.13
1818 id : go
1919
20+ - name : Get the version
21+ id : get_version
22+ run : echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
23+
2024 - name : Check out code into the Go module directory
2125 uses : actions/checkout@v1
2226
2327 - name : Build
24- run : go build -o terraform-provider-fortiadc_${GITHUB_REF }
28+ run : go build -o terraform-provider-fortiadc_${{ steps.get_version.outputs.VERSION } }
2529
2630 - name : Setup Lint
2731 run : curl -LO https://github.com/golangci/golangci-lint/releases/download/v1.19.1/golangci-lint-1.19.1-linux-amd64.tar.gz && tar -xf golangci-lint-1.19.1-linux-amd64.tar.gz
2832
2933 - name : Lint
3034 run : golangci-lint-1.19.1-linux-amd64/golangci-lint run
3135
32- - name : Release
33- uses : softprops/action-gh- release@v1
36+ - name : Upload binaries to release
37+ uses : svenstaro/upload- release-action @v1-release
3438 with :
35- files : terraform-provider-fortiadc_${GITHUB_REF}
36- env :
37- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
39+ repo_token : ${{ secrets.GITHUB_TOKEN }}
40+ file : terraform-provider-fortiadc_${{ steps.get_version.outputs.VERSION }}
41+ asset_name : terraform-provider-fortiadc_${{ steps.get_version.outputs.VERSION }}
42+ tag : ${{ github.ref }}
43+ overwrite : true
You can’t perform that action at this time.
0 commit comments