From 33994bdb0d8fed730421268f9ba60a00e9dad9ae Mon Sep 17 00:00:00 2001 From: 2061360308 <2061360308@qq.com> Date: Tue, 19 Dec 2023 23:24:47 +0800 Subject: [PATCH] chore:update publish.yml --- .github/workflows/publish.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 7024ea2..31ac136 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -2,18 +2,17 @@ name: Publish Python 🐍 distributions 📦 to PyPI on: push: - branches: - - main tags: - '*' jobs: build-n-publish: name: Build and publish Python 🐍 distributions 📦 to PyPI - runs-on: ubuntu-18.04 + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - name: Checkout code + uses: actions/checkout@v2 - name: Set up Python uses: actions/setup-python@v2 @@ -26,7 +25,7 @@ jobs: - name: Generate release notes to "RELEASE_NOTES" Environment Variable run: | - echo "RELEASE_NOTES=$(towncrier --draft)" >> $GITHUB_ENV + echo "RELEASE_NOTES=$(towncrier --draft | base64)" >> $GITHUB_ENV - name: Generate version notes with towncrier run: | @@ -53,4 +52,4 @@ jobs: with: tag_name: ${{ github.ref }} release_name: Release ${{ github.ref }} - body: ${{ env.RELEASE_NOTES }} + body: ${{ env.RELEASE_NOTES | base64 --decode }}