Skip to content
This repository was archived by the owner on May 11, 2025. It is now read-only.

Commit 3044fb4

Browse files
committed
update workflow
1 parent f90832b commit 3044fb4

3 files changed

Lines changed: 69 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Generate Package
2+
on:
3+
release:
4+
types: [published]
5+
jobs:
6+
release:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
node-version: [ 18.x ]
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v3
14+
15+
- name: Use Node.js
16+
uses: actions/setup-node@v3
17+
with:
18+
node-version: ${{ matrix.node-version }}
19+
20+
- name: Build Frontend
21+
run: |
22+
cd gui
23+
npm install
24+
npm run build
25+
26+
27+
- name: Use Golang
28+
uses: actions/setup-go@v4
29+
with:
30+
go-version: '1.20'
31+
32+
- name: Build Backend
33+
run: go build .
34+
35+
- name: Zip
36+
run: |
37+
zip -r package.zip ./* -x "gui/*"
38+
39+
- name: Upload Package
40+
uses: actions/upload-release-asset@v1.0.2
41+
with:
42+
upload_url: ${{ github.event.release.upload_url }}
43+
asset_path: ./package.zip
44+
asset_name: package.zip
45+
asset_content_type: application/zip
46+
env:
47+
GITHUB_TOKEN: ${{ secrets.TOKEN }}

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023 Zhang Minghan
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

gui/src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ function generate() {
7373
<t-card class="response">
7474
<template v-if="link">
7575
<t-input v-model="link" readonly />
76-
<img :src="link" alt>
76+
<img :src="link" alt="">
7777
</template>
7878
<t-loading class="loading" v-else />
7979
</t-card>

0 commit comments

Comments
 (0)