ci(release): ✨ add try test server
This commit is contained in:
parent
040c3c7751
commit
bdf2fac1ad
1 changed files with 39 additions and 0 deletions
39
.gitea/workflows/build_client.yml
Normal file
39
.gitea/workflows/build_client.yml
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
name: Web Client Package
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "v*"
|
||||
- "!v*-dev"
|
||||
jobs:
|
||||
build_binary:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
- name: Install Angular CLI
|
||||
run: npm install -g @angular/cli
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
pwd
|
||||
cd client
|
||||
ls
|
||||
npm install
|
||||
- name: Build Angular project
|
||||
run: |
|
||||
pwd
|
||||
cd client
|
||||
ls
|
||||
ng build ${{ inputs.project_name }}
|
||||
- name: Zip files
|
||||
uses: vimtor/action-zip@v1.2
|
||||
with:
|
||||
files: client/dist/client/
|
||||
dest: client/dist/client.zip
|
||||
- name: Create Release
|
||||
uses: akkuman/gitea-release-action@v1
|
||||
with:
|
||||
md5sum: true
|
||||
files: |-
|
||||
client/dist/client.zip
|
||||
Loading…
Add table
Add a link
Reference in a new issue