From 014e337599a7aeb5280bc483d370a4b29fd491d1 Mon Sep 17 00:00:00 2001 From: mos9527 Date: Tue, 24 Sep 2024 19:49:50 +0800 Subject: [PATCH] Version 1.6.17 QoL: Format code with `black` Github Actions: Build and upload on Windows runner --- .github/workflows/build-and-publish.yml | 18 ++++++++++++------ README.md | 2 +- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index 252d234..f70b6fe 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -1,19 +1,25 @@ -name: Publish +name: Build And Publish on: release: types: [created] - + + push: + branches: + - master + + workflow_dispatch: + jobs: build-and-release: if: "contains(github.event.head_commit.message, 'Version')" runs-on: windows-latest steps: - - uses: actions/checkout@v2 - - name: Set up Python - uses: actions/setup-python@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 with: - python-version: '3.x' + python-version: '3.7' + architecture: 'x86' - name: Install dependencies run: | python -m pip install --upgrade pip setuptools wheel twine diff --git a/README.md b/README.md index 1d982af..3bfef29 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ ![Logo](https://github.com/greats3an/pyncm/raw/master/demos/_logo.png) # PyNCM -[![Windows Build](https://github.com/mos9527/pyncm/actions/workflows/build-and-publish.yml/badge.svg)](https://github.com/mos9527/pyncm/blob/main/.github/workflows/build-and-publish.yml) [![Releases](https://img.shields.io/github/downloads/mos9527/pyncm/total.svg)](https://GitHub.com/mos9527/pyncm/releases/) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) +[![Windows Build](https://github.com/mos9527/pyncm/actions/workflows/build-and-publish.yml/badge.svg)](https://github.com/mos9527/pyncm/blob/master/.github/workflows/build-and-publish.yml) [![Releases](https://img.shields.io/github/downloads/mos9527/pyncm/total.svg)](https://GitHub.com/mos9527/pyncm/releases/) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) 第三方网易云音乐 Python API 及个人音乐库离线转储工具