-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (35 loc) · 950 Bytes
/
cd.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
name: CD
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
jobs:
publish:
name: Publish assets for ${{ matrix.job.os }}/${{ matrix.job.arch }}
runs-on: ubuntu-22.04
strategy:
matrix:
job:
- { os: darwin, arch: amd64 }
- { os: linux, arch: amd64 }
- { os: windows, arch: amd64 }
steps:
- uses: actions/checkout@v4
- name: Build
env:
GOOS: ${{ matrix.job.os }}
GOARCH: ${{ matrix.job.arch }}
run: go build
- name: Package
env:
GOOS: ${{ matrix.job.os }}
GOARCH: ${{ matrix.job.arch }}
PROJECT_NAME: msgenctl
shell: bash
run: .github/scripts/package.sh
- name: Release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: msgenctl-*-${{ matrix.job.os }}-${{ matrix.job.arch }}.*