-
-
Notifications
You must be signed in to change notification settings - Fork 271
37 lines (35 loc) · 982 Bytes
/
deploy-mac.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
name: Release Mac Version
on:
workflow_dispatch:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
branches-ignore:
- '*'
jobs:
release-macos:
if: startsWith(github.ref, 'refs/tags/v')
runs-on: macos-latest
environment: production
steps:
- uses: actions/checkout@v3
- name: Install libvips
run: |
brew install vips
- name: Golang Installation
uses: actions/setup-go@v3
with:
go-version: '1.21'
- name: Golang setup dependency
run: |
go version
go install github.com/markbates/pkger/cmd/pkger@latest
- name: Golang build
run: |
cd src && pkger && go build -o darwin-amd64
- name: Deploy artifact to release ${{ github.ref_name }}
uses: AButler/[email protected]
with:
files: 'src/darwin-amd64'
repo-token: ${{ secrets.GITHUB_TOKEN }}
release-tag: ${{ github.ref_name }}