-
Notifications
You must be signed in to change notification settings - Fork 7
35 lines (35 loc) · 1.02 KB
/
release.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: release
on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- id: release
uses: google-github-actions/release-please-action@v4
with:
config-file: .github/release-please-config.json
manifest-file: .github/release-please-manifest.json
- if: ${{ steps.release.outputs.release_created }}
uses: actions/checkout@v3
- if: ${{ steps.release.outputs.release_created }}
uses: actions/setup-go@v4
with:
go-version: '1.23.3'
- if: ${{ steps.release.outputs.release_created }}
env:
RELEASE_TAG: ${{ steps.release.outputs.tag_name }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GOBIN: ${{ github.workspace }}/bin
run: |
bash .github/build.sh -v "$RELEASE_TAG" -o dist <<EOT
linux/amd64
darwin/amd64
windows/amd64
EOT
gh release upload "$RELEASE_TAG" ./dist/*