Skip to content

Commit 4f0a61f

Browse files
authored
Merge branch 'shinnytech:master' into master
2 parents 1c21b61 + 99411cd commit 4f0a61f

File tree

419 files changed

+35311
-22027
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

419 files changed

+35311
-22027
lines changed

.github/workflows/ci-linux.yml

Lines changed: 0 additions & 155 deletions
This file was deleted.

.github/workflows/ci-macos.yml

Lines changed: 0 additions & 77 deletions
This file was deleted.

.github/workflows/ci-win.yml

Lines changed: 0 additions & 78 deletions
This file was deleted.

.github/workflows/run-tqsdk.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Deploy Release
2+
3+
on:
4+
push:
5+
branches:
6+
- 'master'
7+
8+
jobs:
9+
10+
deploy:
11+
strategy:
12+
matrix:
13+
python-version: [3.6.x]
14+
python-arch: [x64]
15+
16+
env:
17+
PYTHONIOENCODING: "utf-8"
18+
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- name: Dump GitHub context
23+
env:
24+
GITHUB_CONTEXT: ${{ toJson(github) }}
25+
run: echo "$GITHUB_CONTEXT"
26+
27+
- name: Format ci info on tag
28+
if: startsWith(github.event.head_commit.message, 'Update Version')
29+
run: |
30+
echo "TAG_NAME=$(echo ${{ github.event.head_commit.message }} | cut -c15-)" >> $GITHUB_ENV
31+
32+
- name: Checkout
33+
uses: actions/checkout@v2
34+
35+
- name: Add tag
36+
if: startsWith(github.event.head_commit.message, 'Update Version')
37+
uses: mathieudutour/[email protected]
38+
with:
39+
github_token: ${{ secrets.GITHUB_TOKEN }}
40+
custom_tag: ${{ env.TAG_NAME }}
41+
create_annotated_tag: true
42+
tag_prefix: ''
43+
44+
- name: Install ghr
45+
if: startsWith(github.event.head_commit.message, 'Update Version')
46+
env:
47+
GHR_FORK: tcnksm/ghr
48+
GHR_VERSION: 0.14.0
49+
run: |
50+
curl --silent -L https://github.com/${{env.GHR_FORK}}/releases/download/v${{env.GHR_VERSION}}/ghr_v${{env.GHR_VERSION}}_linux_amd64.tar.gz > ghr_v${{env.GHR_VERSION}}_linux_amd64.tar.gz
51+
tar xvzf ghr_v${{env.GHR_VERSION}}_linux_amd64.tar.gz
52+
mv ghr_v${{env.GHR_VERSION}}_linux_amd64/ghr /usr/local/bin/
53+
rm -rf ghr_v${{env.GHR_VERSION}}_linux_amd64 ghr_v${{env.GHR_VERSION}}_linux_amd64.tar.gz
54+
55+
- name: Publish to github release
56+
if: startsWith(github.event.head_commit.message, 'Update Version')
57+
run: |
58+
ghr -u shinny-yangyang -t ${{ secrets.GITHUB_USER_TOKEN }} ${{ env.TAG_NAME }}

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ downloads/
1616
eggs/
1717
.eggs/
1818
lib/
19+
!tqsdk/lib/
1920
lib64/
2021
parts/
2122
sdist/
@@ -106,7 +107,6 @@ ENV/
106107
.vscode/
107108
.reports/
108109
.DS_Store
109-
tqsdk/web/
110110

111111
#node js dir
112112
node_modules/

0 commit comments

Comments
 (0)