Skip to content

Commit 033c906

Browse files
committed
ci: 自动构建脚本
1 parent 124711f commit 033c906

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

.github/workflows/build.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
name: Build
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v3
13+
with:
14+
fetch-depth: 0
15+
16+
- name: List files
17+
run: ls
18+
19+
- name: Package
20+
run: |
21+
ls
22+
mkdir out
23+
7z a "./out/PluginTemplate.zip" ./PluginTemplate/* -r -mx=9
24+
25+
- name: Upload to artifacts
26+
uses: actions/upload-artifact@v4
27+
with:
28+
name: PluginTemplate.zip
29+
path: ./out/*.zip
30+
31+
- name: Upload to release
32+
uses: ncipollo/release-action@v1
33+
if: ${{ startsWith(github.ref, 'refs/tags/') }}
34+
with:
35+
artifacts: ./out/*.zip
36+
draft: true
37+
token: ${{ secrets.GITHUB_TOKEN }}
38+

tools/build.ps1

Whitespace-only changes.

0 commit comments

Comments
 (0)