add go releaser
This commit is contained in:
2
.github/workflows/docker-next-terminal.yml
vendored
2
.github/workflows/docker-next-terminal.yml
vendored
@ -19,7 +19,7 @@ jobs:
|
||||
- name: node Setup
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: '14'
|
||||
node-version: '16'
|
||||
- name: npm install
|
||||
run: |
|
||||
cd web
|
||||
|
29
.github/workflows/goreleaser.yml
vendored
Normal file
29
.github/workflows/goreleaser.yml
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
name: Release
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "v*"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: node Setup
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: '16'
|
||||
- name: npm install
|
||||
run: |
|
||||
cd web
|
||||
npm install
|
||||
npm run build
|
||||
- uses: actions/checkout@v2
|
||||
- name: Run GoReleaser
|
||||
uses: goreleaser/goreleaser-action@v2
|
||||
with:
|
||||
go-version: 1.17
|
||||
version: latest
|
||||
args: release --rm-dist
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
Reference in New Issue
Block a user