-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (32 loc) · 969 Bytes
/
fyshls.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
name: Create fyshls release
on:
push:
tags:
- 'v*.*.*' # Matches version tags like v1.0.0
jobs:
build-and-release:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
go-version: ['1.23']
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
check-latest: true
- name: Build
run: |
go run ./pkg/fyshls/cmd/install fyshls ./pkg/fyshls
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.api_url }}/repos/${{ github.repository }}/releases/tag/${{ github.ref_name }}
asset_path: fyshls
asset_name: fyshls-${{ matrix.os }}
asset_content_type: application/octet-stream