From bff9fd7f3d6683472ee2cfe8be9f5b809300af0b Mon Sep 17 00:00:00 2001 From: Cyril Vrousos <135030683+cyrilvrousos-tas@users.noreply.github.com> Date: Fri, 17 Nov 2023 13:39:37 +0100 Subject: [PATCH] Update github-release.yml Signed-off-by: Cyril Vrousos <135030683+cyrilvrousos-tas@users.noreply.github.com> --- .github/workflows/github-release.yml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/github-release.yml b/.github/workflows/github-release.yml index 040a5499..9a1939f4 100644 --- a/.github/workflows/github-release.yml +++ b/.github/workflows/github-release.yml @@ -55,16 +55,14 @@ jobs: draft: true prerelease: false - name: Upload P2 repository - uses: cyrilvrousos-tas/upload-release-asset@v1 + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ${{ github.workspace }}/org.eclipse.xsmp.repository/target/org.eclipse.xsmp.repository.zip - asset_name: org.eclipse.xsmp.repository-${{ github.ref_name }}.zip - asset_content_type: application/zip + files: ${{ github.workspace }}/org.eclipse.xsmp.repository/target/org.eclipse.xsmp.repository.zip - name: Upload VSCode extension - uses: cyrilvrousos-tas/upload-release-asset@v1 + uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: @@ -73,7 +71,7 @@ jobs: asset_name: xsmp-modeler-${{ github.ref_name }}.vsix asset_content_type: application/zip - name: Upload SMP Tools CLI - uses: cyrilvrousos-tas/upload-release-asset@v1 + uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: @@ -82,7 +80,7 @@ jobs: asset_name: org.eclipse.xsmp.tool.smp.cli-${{ github.ref_name }}.jar asset_content_type: application/java-archive - name: Upload XSMP SDK Profile CLI - uses: cyrilvrousos-tas/upload-release-asset@v1 + uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: @@ -91,7 +89,7 @@ jobs: asset_name: org.eclipse.xsmp.profile.xsmp_sdk.cli-${{ github.ref_name }}.jar asset_content_type: application/java-archive - name: Upload ESA CDK Profile CLI - uses: cyrilvrousos-tas/upload-release-asset@v1 + uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: