Skip to content
This repository has been archived by the owner on Sep 1, 2024. It is now read-only.

Commit

Permalink
feat: 添加自动化构建流程
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesus-Ja committed Nov 12, 2022
1 parent baa224d commit 47c6256
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: test-release

on:
push:
tags:
- "v*"

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
path: '36'
- uses: actions/setup-python@v4
with:
python-version: '3.6'
- run: cd 36 && zip -r ../17wanxiaoCheckin.${{ github.ref_name }}.zip ./
- run: cd 36 && pip install -r requirements.txt -t . && zip -r ../17wanxiaoCheckin-CF.py36.${{ github.ref_name }}.zip ./

- uses: actions/checkout@v3
with:
path: '37'
- uses: actions/setup-python@v4
with:
python-version: '3.7'
- run: cd 37 && pip install -r requirements.txt -t . && zip -r ../17wanxiaoCheckin-CF.py37.${{ github.ref_name }}.zip ./

- uses: actions/checkout@v3
with:
path: '39'
- uses: actions/setup-python@v4
with:
python-version: '3.9'
- run: cd 39 && pip install -r requirements.txt -t . && zip -r ../17wanxiaoCheckin-CF.py39.${{ github.ref_name }}.zip ./

- run: ls
- name: GH Release
uses: softprops/[email protected]
# if: startsWith(github.ref, 'refs/tags/')
with:
tag_name: ${{ github.ref_name }}
name: 17wanxiaoCheckin ${{ github.ref_name }}
body_path: 36/CHANGELOG.txt
draft: false
prerelease: false
files: |
17wanxiaoCheckin.${{ github.ref_name }}.zip
17wanxiaoCheckin-CF.py36.${{ github.ref_name }}.zip
17wanxiaoCheckin-CF.py37.${{ github.ref_name }}.zip
17wanxiaoCheckin-CF.py39.${{ github.ref_name }}.zip
7 changes: 7 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
### ⚡ChangeLog

* 🔥添加 ver 验证字段,当前部分学校已经开始检验此字段,没有当前字段可能会显示打卡模板不对
* 🌟基于目前频繁出现交换密钥失败,添加重试装饰器,失败时会休眠 10 s,重试 5 次,大概率能解决此问题
* 👏服务器或本地运行请下载没有 CF 后缀的,云函数请下载带 CF 后缀,不同的 py 后缀是不同的 py 版本
------
蓝奏云链接:https://lingsiki.lanzouw.com/b0ekhmcxe 密码:2333

0 comments on commit 47c6256

Please sign in to comment.