-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (42 loc) · 1.08 KB
/
release.yml
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
name: Release AWS Lambda API Simulator
on:
release:
types: [published]
env:
LATEST_GO_VERSION: 1.19
permissions:
contents: write
jobs:
releases-matrix:
name: Release Binaries
runs-on: ubuntu-latest
strategy:
matrix:
goos: [ linux, windows, darwin ]
goarch: [ "386", amd64, arm64 ]
exclude:
- goarch: "386"
goos: darwin
- goarch: arm64
goos: windows
steps:
- uses: actions/checkout@v2
- name: Run Tests
run: make test
- name: Run Sanity
run: make build
- uses: wangyoucao577/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goversion: ${{ env.LATEST_GO_VERSION }}
project_path: "./cmd/simulator"
binary_name: "simulator"
ldflags: "-s -w"
extra_files: LICENSE README.md
dockerhub-release:
name: Call Docker Hub Release
uses:
./.github/workflows/docker.yml
secrets: inherit