From 5f3b260d5422cbf187f2a06144f331241cc5b0f1 Mon Sep 17 00:00:00 2001 From: Autumn Date: Thu, 27 Jun 2024 15:23:46 -0700 Subject: [PATCH] ci: allow pypi publishing, add sha sums to the release notes --- .github/workflows/release.yml | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 01bb7c9..0f3857a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -156,21 +156,31 @@ jobs: id: artifacts run: | invoke build --validate - invoke last-logged-changes | tee CHANGES.rst.${{ steps.version.outputs.CURRENT_VERSION }} + invoke last-logged-changes | tee RELEASE_NOTES.rst + invoke checksum | tee -a RELEASE_NOTES.rst + + - + name: Convert RELEASE_NOTES.rst to markdown + uses: docker://pandoc/core:2.9 + with: + args: >- + -s + -t gfm + -o RELEASE_NOTES.md + RELEASE_NOTES.rst - name: Create Release id: upload-release-asset uses: softprops/action-gh-release@v1 with: - body_path: CHANGES.rst.${{ steps.version.outputs.CURRENT_VERSION }} + body_path: RELEASE_NOTES.md name: Release ${{ steps.version.outputs.CURRENT_VERSION }} files: dist/instruct* - # ARJ: disable for now - # - - # name: Publish package distributions to PyPI - # uses: pypa/gh-action-pypi-publish@release/v1 - # if: ${{ github.ref_type == 'tag' && startsWith(github.ref, 'refs/tags/v') }} - # with: - # skip-existing: false + - + name: Publish package distributions to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + if: ${{ github.ref_type == 'tag' && startsWith(github.ref, 'refs/tags/v') }} + with: + skip-existing: false