-
Notifications
You must be signed in to change notification settings - Fork 526
55 lines (47 loc) · 1.39 KB
/
release-please.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Release Please
on:
pull_request:
types:
- closed
permissions:
contents: write
pull-requests: write
jobs:
test:
if: |
github.event.pull_request.merged == true &&
github.ref_name == "master" &&
contains(github.event.pull_request.head.name, "release")
uses: ./.github/workflows/test.yaml
release-please:
if: |
github.event.pull_request.merged == true &&
github.ref_name == "master" &&
contains(github.event.pull_request.head.name, "release")
runs-on: ubuntu-latest
needs: [test]
steps:
- uses: actions/checkout@v2
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: "1.18.x"
- name: Build EchoIP binary
run: go build -o ./echoip ./cmd/echoip/main.go
- name: Upload Release Artifact
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
zip -r echoip-linux-amd64.zip echoip html LICENSE
- uses: google-github-actions/release-please-action@v3
with:
bootstrap-sha: "ef1f4b388c24e977ec63d6943ac8f0b0c5f51b58"
last-release-sha: "32a92399085082121675553e23d722605752519e"
release-type: "go"
release-as: "1.1.0"
command: "release-pr"
extra-files: |
echoip-linux-amd64-${{ github.ref_name }}.zip
echoip
html
LICENSE