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 }}