mirror of
https://github.com/0-8-4/miui-auto-tasks.git
synced 2024-11-28 10:38:42 +00:00
56c27977da
* 修复无法获取成长值的问题 更改成长值获取接口 * 修复无法获取成长值的问题 更改成长值获取接口 * 改用正则获取成长值 * 推送配置说明 * 更新推送 * 更新推送 * Update config.yaml * Update config.yaml * Update requirements.txt * Update config.yaml * format the file * 提升版本号 * 提升版本号 * 提升版本号 * 修复取消点赞出错 * feat: 重构项目 * chore: add Exception * add: repo report link * feat: 添加token的获取 * chore: 修正签到参数 * Delete utils directory * Delete config.yaml * Delete miuitask.py * feat: 重构项目 * Create __init__.py * feat: 重构项目 * Create 1 * feat: 重构项目 * add: 添加cryptography依赖 * Delete utils/api/1 * chore: 使用yaml储存数据 * chore: 添加token异常提示 chore: 修正部分数据结构 * imp: add system info output * imp: auto reformat by PyCharm * imp: 增加鸣谢 * imp: 修改主程序名称 * fix: 添加被删除的文件 * imp: 根据新版本 修改GitHub Action 脚本 * add: 添加tenacity重试库,部分get_token添加重试机制 chore: 将token.py重命名为utils.py chore: 添加captcha.py,用于用户自行解决验证码 * 增加信息显示 增加显示项目信息及系统信息 * imp: 修复github action 脚本 * imp: auto reformat by PyCharm --------- Co-authored-by: 0-8-4 <ljd69154@liangjundi.cn> Co-authored-by: TardisX <ranoklx@gmail.com>
59 lines
1.3 KiB
YAML
59 lines
1.3 KiB
YAML
# author: 0-8-4
|
||
# date: 24-11-2022 18:34 AEDT
|
||
# last_update: 13-11-2023 22:57 AEDT
|
||
#
|
||
# This script is used to automatically build docker image and
|
||
# push to DockerHub when every new release is published
|
||
|
||
name: DockerHub CI
|
||
|
||
on:
|
||
release:
|
||
types: [published]
|
||
workflow_dispatch:
|
||
|
||
env:
|
||
DOCKERHUB_REPO: o1si/miui-auto-tasks
|
||
|
||
jobs:
|
||
build:
|
||
runs-on: ubuntu-latest
|
||
steps:
|
||
-
|
||
name: Set up python 3.11 run the program once to create the `/data`
|
||
uses: actions/setup-python@v4
|
||
with:
|
||
python-version: '3.11'
|
||
|
||
-
|
||
name: run the program once to create the `/data`
|
||
run: python3 miuitask.py
|
||
|
||
-
|
||
name: Set up QEMU
|
||
uses: docker/setup-qemu-action@v2
|
||
|
||
-
|
||
name: Set up Docker Buildx
|
||
uses: docker/setup-buildx-action@v2
|
||
|
||
-
|
||
name: Login to Docker Hub
|
||
uses: docker/login-action@v2
|
||
with:
|
||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||
|
||
-
|
||
name: Build and push
|
||
uses: docker/build-push-action@v3
|
||
with:
|
||
push: true
|
||
platforms: |
|
||
linux/amd64
|
||
linux/arm64
|
||
tags: |
|
||
${{ env.DOCKERHUB_REPO }}:latest
|
||
${{ env.DOCKERHUB_REPO }}:${{ github.event.release.tag_name }}
|
||
|