-
Notifications
You must be signed in to change notification settings - Fork 10
55 lines (46 loc) · 1.33 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
45
46
47
48
49
50
51
52
53
54
55
name: goreleaser
on:
push:
tags:
- "v*.*.*"
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout main repository
uses: actions/checkout@v2
- name: 'Get Previous tag'
id: previoustag
uses: "WyriHaximus/github-action-get-previous-tag@v1"
- name: Initialize submodules
run: git submodule update --init --recursive
- name: Install dependencies and build frontend
working-directory: fionna-web
run: |
npm install
npm run build
- name: Archive built frontend
uses: actions/upload-artifact@v2
with:
name: frontend
path: fionna-web/dist # Adjust the path based on your build output
-
name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18
- name: replace version
run: ver=${{ steps.previoustag.outputs.tag }} && new_ver=${ver:1} && sed -i "s/FIONNA_VERSION/${new_ver}/g" cmd/version.go
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --clean --skip validate
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}