diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..12d99e2b --- /dev/null +++ b/.github/workflows/main.yml @@ -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/action-gh-release@v0.1.14 +# 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 \ No newline at end of file diff --git a/CHANGELOG.txt b/CHANGELOG.txt new file mode 100644 index 00000000..a4e07cfa --- /dev/null +++ b/CHANGELOG.txt @@ -0,0 +1,7 @@ +### ⚡ChangeLog + +* 🔥添加 ver 验证字段,当前部分学校已经开始检验此字段,没有当前字段可能会显示打卡模板不对 +* 🌟基于目前频繁出现交换密钥失败,添加重试装饰器,失败时会休眠 10 s,重试 5 次,大概率能解决此问题 +* 👏服务器或本地运行请下载没有 CF 后缀的,云函数请下载带 CF 后缀,不同的 py 后缀是不同的 py 版本 +------ +蓝奏云链接:https://lingsiki.lanzouw.com/b0ekhmcxe 密码:2333 \ No newline at end of file