-
-
Notifications
You must be signed in to change notification settings - Fork 276
50 lines (47 loc) · 1.35 KB
/
release-linux.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
47
48
49
50
name: Release Linux Version
on:
workflow_dispatch:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
branches-ignore:
- '*'
jobs:
release-linux-amd64:
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
environment: production
steps:
- uses: actions/checkout@v4
- name: Golang Installation
uses: actions/setup-go@v5
with:
go-version: '1.23'
- name: Golang build
run: |
cd src && go build -o linux-amd64
- name: Deploy artifact to release ${{ github.ref_name }}
uses: AButler/[email protected]
with:
files: 'src/linux-amd64'
repo-token: ${{ secrets.GITHUB_TOKEN }}
release-tag: ${{ github.ref_name }}
release-linux-arm64:
if: startsWith(github.ref, 'refs/tags/v')
runs-on: [ARM64]
environment: production
steps:
- uses: actions/checkout@v4
- name: Golang Installation
uses: actions/setup-go@v5
with:
go-version: '1.23'
- name: Golang build
run: |
cd src && go build -o linux-arm64
- name: Deploy artifact to release ${{ github.ref_name }}
uses: AButler/[email protected]
with:
files: 'src/linux-arm64'
repo-token: ${{ secrets.GITHUB_TOKEN }}
release-tag: ${{ github.ref_name }}