-
Notifications
You must be signed in to change notification settings - Fork 5
43 lines (39 loc) · 1.03 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
name: Release new version
on:
push:
tags:
- "v*"
permissions:
contents: write
packages: write
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_USER: ${{ github.actor }}
GH_TAG: ${{ github.ref_name }}
PBL_VERSION: ${{ github.ref_name }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Change Version
run: echo "${GH_TAG}" | cut -c 2- > ./client/VERSION
- name: Build Client
uses: actions/setup-node@v3
with:
node-version: 18.18.0
- run: cd proxy && yarn run build:ci
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ">=1.21.3"
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v3
with:
distribution: goreleaser
version: latest
args: release --clean --skip-validate
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Publish Package
run: chmod +x ./docker-build.sh && ./docker-build.sh