mirror of
https://git.sr.ht/~ashkeel/strimertul
synced 2024-09-20 02:00:49 +00:00
35 lines
758 B
YAML
35 lines
758 B
YAML
name: Release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "v*.*.*"
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Setup Go environment
|
|
uses: actions/setup-go@v2.1.4
|
|
with:
|
|
go-version: 1.17
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 14.x
|
|
- name: Build frontend
|
|
run: |
|
|
cd frontend
|
|
npm install
|
|
npm run build
|
|
- name: Build app for all platforms
|
|
run: |
|
|
go get github.com/mitchellh/gox
|
|
gox -arch="amd64 arm" -os "windows linux"
|
|
- name: Create release
|
|
uses: softprops/action-gh-release@v1
|
|
with:
|
|
files: |
|
|
strimertul_*
|