From f07062cdaffdfa1a9b02610475f339a00d4f74a9 Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Sat, 7 Oct 2023 07:50:27 +0800 Subject: --- .github/workflows/python-publish.yml | 42 ++++++++++++++++++------------------ 1 file changed, 21 insertions(+), 21 deletions(-) (limited to '.github/workflows/python-publish.yml') diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 346d4e22..06f509b6 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -50,26 +50,26 @@ jobs: PDM_PUBLISH_PASSWORD: ${{ secrets.PDM_PUBLISH_PASSWORD }} PDM_PUBLISH_USERNAME: ${{ secrets.PDM_PUBLISH_USERNAME }} - # - name: Get Changelog - # id: get-changelog - # run: | - # awk '/-{3,}/{flag=1;next}/Release/{if (flag==1)exit}flag' CHANGELOG.md > .changelog.md + - name: Get Changelog + id: get-changelog + run: | + awk '/-{3,}/{flag=1;next}/Release/{if (flag==1)exit}flag' CHANGELOG.md > .changelog.md - # - name: Create Release - # uses: actions/create-release@main - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # with: - # tag_name: ${{ github.ref }} - # release_name: v${{ github.ref }} - # body_path: .changelog.md - # draft: false - # prerelease: ${{ steps.check_version.outputs.PRERELEASE }} + - name: Create Release + uses: actions/create-release@main + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: v${{ github.ref }} + body_path: .changelog.md + draft: false + prerelease: ${{ steps.check_version.outputs.PRERELEASE }} - # - name: Trigger Bucket Update - # uses: benc-uk/workflow-dispatch@v1 - # with: - # workflow: Excavator - # repo: frostming/scoop-frostming - # token: ${{ secrets.G_T }} - # ref: master \ No newline at end of file + - name: Trigger Bucket Update + uses: benc-uk/workflow-dispatch@v1 + with: + workflow: Excavator + repo: frostming/scoop-frostming + token: ${{ secrets.G_T }} + ref: master \ No newline at end of file -- cgit v1.2.3-70-g09d2