From dbf51d0cc23afa3d11fb8eacd488d0bb129cdc65 Mon Sep 17 00:00:00 2001 From: 0-8-4 Date: Mon, 28 Nov 2022 14:32:44 +1100 Subject: [PATCH] GitHub actions patch 2 (#65) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Create template docker-image.yml * add: script that automatically build docker image and push to DockerHub * add: GitHub Actions Badge * fix: GitHub Actions 变量名出错 * fix: Python 版本号 * imp: 修改 Actions脚本名称 --- .github/workflows/docker-image.yml | 6 +++--- README.md | 9 +++++---- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 028228d..1a833fb 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -4,7 +4,7 @@ # This script is used to automatically build docker image and # push to DockerHub when every new release is published -name: Docker Image CI +name: DockerHub CI on: release: @@ -30,8 +30,8 @@ jobs: name: Login to Docker Hub uses: docker/login-action@v2 with: - username: ${{ secret.DOCKERHUB_USERNAME }} - password: ${{ secret.DOCKERHUB_TOKEN }} + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Build and push diff --git a/README.md b/README.md index 2565677..4d0c21b 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,15 @@ # MIUI Task 一个适用于 小米社区 4.0 自动完成成长值任务的脚本 -[![996.icu](https://img.shields.io/badge/link-996.icu-red.svg)](https://996.icu) ![GitHub](https://img.shields.io/github/license/0-8-4/miui-auto-tasks) ![python](https://img.shields.io/badge/python-3.6+-blue) +[![996.icu](https://img.shields.io/badge/link-996.icu-red.svg)](https://996.icu) ![GitHub](https://img.shields.io/github/license/0-8-4/miui-auto-tasks) +![Python](https://img.shields.io/badge/python-3.7+-blue) ![DockerHub](https://github.com/0-8-4/miui-auto-tasks/actions/workflows/docker-image.yml/badge.svg) ## **关于项目**: - 由 `東雲研究所` 的某位大佬编写 - 由大佬授权 `0-8-4` 使用 `MIT` 开源 - `0-8-4` 和 `TardisLX` 会进行基础维护 + 受`東雲研究所` 的某位大佬启发 + 最初的源码由大佬授权 `0-8-4` 使用 `MIT` 开源 + 项目初期由`0-8-4` 和 `TardisLX` 进行维护,现已逐渐转为社区驱动 我们认为小米社区无权在无任何回报的情况下强制要求内测用户完成 KPI 任务,因此诞生了这个脚本