Skip to content

Commit 8b74b08

Browse files
committed
Test new github/workflows/release
1 parent c43bf55 commit 8b74b08

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,21 @@ jobs:
4646
- name: Build project
4747
run: go build -ldflags="-X main.version=$(git describe --always --long --dirty) -X main.release=$(git describe --tags --abbrev=0)" -o "$BINARY_NAME" *.go
4848

49-
- name: Release
49+
- name: Release binaries
5050
uses: softprops/action-gh-release@v1
51+
# https://github.com/softprops/action-gh-release
52+
with:
53+
files: |
54+
${{ env.BINARY_NAME }}
55+
env:
56+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Automatically provided secret
57+
58+
- name: Release scripts
59+
uses: softprops/action-gh-release@v1
60+
# https://github.com/softprops/action-gh-release
61+
if: ${{ env.GOARCH }} == 'amd64'
5162
with:
5263
files: |
53-
${{env.BINARY_NAME}}
5464
scripts/create-cluster.sh
5565
scripts/delete-cluster.sh
5666
scripts/console.sh

0 commit comments

Comments
 (0)