forked from wowsims/mop
-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (64 loc) · 2.19 KB
/
release.yml
File metadata and controls
74 lines (64 loc) · 2.19 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: Release
on:
workflow_dispatch:
# Inputs the workflow accepts.
inputs:
ref:
description: 'Commit Reference'
default: 'master'
required: true
tag:
description: 'Version Tag'
default: 'v0.0.0'
required: true
jobs:
build-and-release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.25.x
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
version: 3.x
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install Protoc Go plugin
run: go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 22
- name: Checkout
uses: actions/checkout@v5
with:
ref: ${{ github.event.inputs.ref }}
- name: Test Locales 💬
run: |
npm ci
npm run test:locales
- name: Build 🔧
run: |
make clean && VERSION=${{ github.event.inputs.tag }} make release
- name: Test
run: |
make test
- name: Release
uses: ncipollo/release-action@v1
with:
commit: ${{ github.event.inputs.ref }}
tag: ${{ github.event.inputs.tag }}
generateReleaseNotes: true
makeLatest: true
artifactErrorsFailBuild: true
artifacts: |
wowsimcli-amd64-linux.zip
wowsimcli-windows.exe.zip
wowsimcli-arm64-darwin.zip
wowsimmop-amd64-darwin.zip
wowsimmop-arm64-darwin.zip
wowsimmop-amd64-linux.zip
wowsimmop-windows.exe.zip