From 279731f1b5954848aec1eec3437e4022d08b634a Mon Sep 17 00:00:00 2001 From: tim-s-ccs Date: Tue, 16 Jan 2024 13:44:49 +0000 Subject: [PATCH] Update actions to fix releases --- .github/workflows/release.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 643a49ad..c53cdc66 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,7 +28,7 @@ jobs: - name: Get package version id: package_version - run: echo "::set-output name=python::"$(python setup.py --version) + run: echo "python=$(python setup.py --version)" >> $GITHUB_OUTPUT - name: Check if version tag already exists id: version_tag @@ -40,9 +40,8 @@ jobs: - name: Create GitHub release if: ${{ steps.version_tag.outputs.exists == 'false' }} - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.DM_GITHUB_TOKEN }} + uses: ncipollo/release-action@v1 with: - tag_name: ${{ steps.package_version.outputs.python }} - release_name: Release v${{ steps.package_version.outputs.python }} + token: ${{ secrets.DM_GITHUB_TOKEN }} + tag: ${{ steps.package_version.outputs.python }} + name: Release v${{ steps.package_version.outputs.python }}