Skip to content

Commit

Permalink
Replace deprecated workflow action
Browse files Browse the repository at this point in the history
  • Loading branch information
fpoli committed Feb 1, 2024
1 parent e9dd7c9 commit bd0da05
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,22 +105,11 @@ jobs:
packagePath: ''

- name: Create a release for the published version
id: create_release
uses: actions/create-release@v1
uses: softprops/action-gh-release@v1
if: env.CURRENT_VERSION != env.LAST_PUBLISHED_VERSION
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
name: Release v${{ env.CURRENT_VERSION }}
tag_name: v${{ env.CURRENT_VERSION }}
release_name: Release v${{ env.CURRENT_VERSION }}

- name: Upload release asset
uses: actions/upload-release-asset@v1
if: env.CURRENT_VERSION != env.LAST_PUBLISHED_VERSION
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: prusti-assistant-${{ env.CURRENT_VERSION }}.vsix
asset_name: prusti-assistant-${{ env.CURRENT_VERSION }}.vsix
asset_content_type: application/zip
files: prusti-assistant-${{ env.CURRENT_VERSION }}.vsix

0 comments on commit bd0da05

Please sign in to comment.