diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d6bbfa73..b15fff70 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -88,25 +88,13 @@ jobs: - run: pip install -vvv ${{ steps.create_dist.outputs.whl }} - run: rsconnect version - run: rsconnect --help - - if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} - draft: false - prerelease: false - - if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: release + uses: softprops/action-gh-release@v2 + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ${{ steps.create_dist.outputs.whl }} - asset_name: ${{ steps.create_dist.outputs.whl_basename }} - asset_content_type: application/x-wheel+zip + files: | + *.whl + token: ${{ secrets.GITHUB_TOKEN }} - uses: aws-actions/configure-aws-credentials@v4 id: creds with: