Skip to content

Commit dd4c729

Browse files
committed
chore: add github action
1 parent b827020 commit dd4c729

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/release.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Manual Release
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
build-and-release:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v3
12+
13+
- name: Setup Node.js
14+
uses: actions/setup-node@v3
15+
with:
16+
node-version: "18"
17+
18+
- name: Install dependencies
19+
run: |
20+
npm install -g pnpm
21+
pnpm install
22+
23+
- name: Build and package
24+
run: |
25+
chmod +x ./scripts/build.sh
26+
./scripts/build.sh
27+
28+
- name: Upload Release Assets
29+
uses: xresloader/upload-to-github-release@v1
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
with:
33+
file: "gcoas_*.zip"

0 commit comments

Comments
 (0)