-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (37 loc) · 1.17 KB
/
release.yml
File metadata and controls
45 lines (37 loc) · 1.17 KB
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
---
name: release
on:
release:
types:
- published
workflow_dispatch:
permissions:
contents: write
jobs:
release:
name: Release ec_check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "stable"
- name: Build binaries
run: |
make build
- name: Upload release assets
run: |
cd ${{github.workspace}}
gh release upload ${{github.event.release.tag_name}} ./bin/ec_check.linux.amd64
gh release upload ${{github.event.release.tag_name}} ./bin/ec_check.linux.arm64
gh release upload ${{github.event.release.tag_name}} ./bin/ec_check.macos.amd64
gh release upload ${{github.event.release.tag_name}} ./bin/ec_check.macos.arm64
gh release upload ${{github.event.release.tag_name}} ./bin/ec_check.windows.amd64.exe
gh release upload ${{github.event.release.tag_name}} ./bin/ec_check.windows.arm64.exe
env:
GITHUB_TOKEN: ${{ github.TOKEN }}
shell: bash