mirror of
https://github.com/2061360308/NeteaseCloudMusic_PythonSDK.git
synced 2024-11-22 06:57:42 +00:00
chore:update publish.yml
This commit is contained in:
parent
eea8c1e46e
commit
33994bdb0d
11
.github/workflows/publish.yml
vendored
11
.github/workflows/publish.yml
vendored
@ -2,18 +2,17 @@ name: Publish Python 🐍 distributions 📦 to PyPI
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
tags:
|
tags:
|
||||||
- '*'
|
- '*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-n-publish:
|
build-n-publish:
|
||||||
name: Build and publish Python 🐍 distributions 📦 to PyPI
|
name: Build and publish Python 🐍 distributions 📦 to PyPI
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
@ -26,7 +25,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Generate release notes to "RELEASE_NOTES" Environment Variable
|
- name: Generate release notes to "RELEASE_NOTES" Environment Variable
|
||||||
run: |
|
run: |
|
||||||
echo "RELEASE_NOTES=$(towncrier --draft)" >> $GITHUB_ENV
|
echo "RELEASE_NOTES=$(towncrier --draft | base64)" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Generate version notes with towncrier
|
- name: Generate version notes with towncrier
|
||||||
run: |
|
run: |
|
||||||
@ -53,4 +52,4 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
tag_name: ${{ github.ref }}
|
tag_name: ${{ github.ref }}
|
||||||
release_name: Release ${{ github.ref }}
|
release_name: Release ${{ github.ref }}
|
||||||
body: ${{ env.RELEASE_NOTES }}
|
body: ${{ env.RELEASE_NOTES | base64 --decode }}
|
||||||
|
Loading…
Reference in New Issue
Block a user