Skip to content

Commit b256e7e

Browse files
authored
Merge pull request #13 from TMBotDev/beta
Sync Work: beta=>main
2 parents 33222a8 + ddb8f4f commit b256e7e

8 files changed

+67
-82
lines changed

.gitee/ISSUE_TEMPLATE.zh-CN.md

-13
This file was deleted.

.gitee/PULL_REQUEST_TEMPLATE.zh-CN.md

-53
This file was deleted.

.github/workflows/Release.yml

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: 'Release'
2+
on: # rebuild any PRs and main branch changes
3+
workflow_dispatch:
4+
push:
5+
branches:
6+
- Auto-Release
7+
8+
jobs:
9+
build: # make sure build/ci work properly
10+
runs-on: ubuntu-22.04
11+
steps:
12+
- uses: actions/checkout@v3
13+
with:
14+
fetch-depth: 1
15+
- name: Install Requirements
16+
run: |
17+
npm i
18+
npm install typescript
19+
- name: Build TMBot
20+
run: |
21+
mkdir build
22+
tsc --outDir ./build/ -watch false
23+
- name: Copy Files
24+
run: |
25+
cp start.bat ./build/
26+
cp start.sh ./build/
27+
cp package.json ./build/
28+
- name: Pack Release
29+
id: pack
30+
working-directory: ${{ env.GITHUB_WORKSPACE }}
31+
run: |
32+
cd build
33+
7z a TMBot-Release.zip -r
34+
- name: Get version
35+
id: version
36+
uses: notiz-dev/github-action-json-property@release
37+
with:
38+
path: 'package.json'
39+
prop_path: "version"
40+
- name: Upload TMBot
41+
uses: actions/[email protected]
42+
with:
43+
name: TMBot
44+
path: ./build/
45+
- name: Release
46+
uses: softprops/action-gh-release@v1
47+
with:
48+
body_path: ${{ github.workspace }}/Release-Description.md
49+
tag_name: v${{steps.version.outputs.prop}}
50+
token: ${{ secrets.RELEASE_TOKEN }}
51+
files: |
52+
./build/TMBot-Release.zip
53+
env:
54+
GITHUB_REPOSITORY: TMBotDev/TMBot
55+
56+
57+
58+
59+
60+

.github/workflows/build-repo.yml

+2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@ on: # rebuild any PRs and main branch changes
33
pull_request:
44
branches:
55
- main
6+
- beta
67
workflow_dispatch:
78
push:
89
branches:
910
- main
11+
- beta
1012

1113
jobs:
1214
build: # make sure build/ci work properly

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
.gitee
2+
.vscode
3+
build
14
node_modules
25
plugins/*
36
config

.vscode/settings.json

-16
This file was deleted.

Release-Description.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# 114514

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "TMBot",
3+
"version":"1.0.2",
34
"description": "TM机器人框架(OneBot标准)",
45
"main": "./app.js",
56
"scripts": {

0 commit comments

Comments
 (0)