-
Notifications
You must be signed in to change notification settings - Fork 5
40 lines (36 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
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 }}
POCKETBASE_VERSION: ${{ vars.POCKETBASE_VERSION }}
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: Build and Publish Package
run: chmod +x ./docker-build.sh && ./docker-build.sh
- name: Create a Release
id: create_release
uses: shogo82148/actions-create-release@v1
- name: Upload Assets
uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: release.zip