-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (42 loc) · 1.08 KB
/
release.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
name: lakitu release
on:
push:
tags:
- '**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v2
- name: Install NodeJS
uses: actions/setup-node@v2
with:
node-version: '16.x'
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: '^1.17'
- name: Set up MinGW
uses: egor-tensin/setup-mingw@v2
with:
platform: x64
- name: Build binaries
run: |
./build.sh
env:
COOKIE_SECRET: ${{ secrets.COOKIE_SECRET }}
- name: Generate variables
id: lakitu
run: |
echo ::set-output name=VERSION::$(git describe --tags)
- name: Upload release
id: release
uses: softprops/action-gh-release@v1
with:
name: lakitu ${{ steps.lakitu.outputs.VERSION }}
tag_name: ${{ steps.lakitu.outputs.VERSION }}
draft: false
prerelease: false
token: ${{ secrets.GITHUB_TOKEN }}
files: dist/*.zip