From a00aadc6a25982ce142381e312d2768a641183c8 Mon Sep 17 00:00:00 2001 From: edavidaja Date: Fri, 20 Dec 2024 10:36:40 -0500 Subject: [PATCH 1/2] remove deprecated actions --- .github/workflows/main.yml | 24 ++++++------------------ 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d6bbfa73..2c86ecd4 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: 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: From c15556a0aa1daf04115ed657033fc0dcf9a73465 Mon Sep 17 00:00:00 2001 From: "E. David Aja" Date: Fri, 20 Dec 2024 11:18:41 -0500 Subject: [PATCH 2/2] Update .github/workflows/main.yml Co-authored-by: Taylor Steinberg --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2c86ecd4..b15fff70 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -90,7 +90,7 @@ jobs: - run: rsconnect --help - name: release uses: softprops/action-gh-release@v2 - if: startsWith(github.ref, 'refs/tags/') + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') with: files: | *.whl