From 883ee65d9a04b2824a94aff70923e8d3ebc70c29 Mon Sep 17 00:00:00 2001 From: Muhammad Sammy Date: Sun, 3 Sep 2023 13:06:09 +0300 Subject: [PATCH] Update release github workflow --- .github/workflows/release-ci.yml | 102 +++---------------------------- 1 file changed, 7 insertions(+), 95 deletions(-) diff --git a/.github/workflows/release-ci.yml b/.github/workflows/release-ci.yml index 7a694f5a8..77a3290eb 100644 --- a/.github/workflows/release-ci.yml +++ b/.github/workflows/release-ci.yml @@ -33,110 +33,22 @@ jobs: - name: Compile run: npm run compile - - name: Prepublish VSIXs + - name: Prepublish VSIX run: npm run vscode:prepublish - - name: Build VSIXs - run: gulp 'vsix:release:package' + - name: Build VSIX + run: gulp 'vsix:release:neutral' - name: Get package version run: node -e "console.log('VERSION=' + require('./package.json').version)" >> $GITHUB_ENV - - name: Upload release build (darwin-arm64) - id: upload-release-asset-darwin-arm64 + - name: Upload release build + id: upload-release-asset-neutral uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ github.event.release.upload_url }} - asset_path: ./vsix/csharp-darwin-arm64-${{ env.VERSION }}.vsix - asset_name: csharp-darwin-arm64-${{ env.VERSION }}.vsix - asset_content_type: application/zip - - - name: Upload release build (darwin-x64) - id: upload-release-asset-darwin-x64 - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ github.event.release.upload_url }} - asset_path: ./vsix/csharp-darwin-x64-${{ env.VERSION }}.vsix - asset_name: csharp-darwin-x64-${{ env.VERSION }}.vsix - asset_content_type: application/zip - - - name: Upload release build (linux-arm64) - id: upload-release-asset-linux-arm64 - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ github.event.release.upload_url }} - asset_path: ./vsix/csharp-linux-arm64-${{ env.VERSION }}.vsix - asset_name: csharp-linux-arm64-${{ env.VERSION }}.vsix - asset_content_type: application/zip - - - name: Upload release build (linux-x64) - id: upload-release-asset-linux-x64 - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ github.event.release.upload_url }} - asset_path: ./vsix/csharp-linux-x64-${{ env.VERSION }}.vsix - asset_name: csharp-linux-x64-${{ env.VERSION }}.vsix - asset_content_type: application/zip - - - name: Upload release build (alpine-arm64) - id: upload-release-asset-alpine-arm64 - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ github.event.release.upload_url }} - asset_path: ./vsix/csharp-alpine-arm64-${{ env.VERSION }}.vsix - asset_name: csharp-alpine-arm64-${{ env.VERSION }}.vsix - asset_content_type: application/zip - - - name: Upload release build (alpine-x64) - id: upload-release-asset-alpine-x64 - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ github.event.release.upload_url }} - asset_path: ./vsix/csharp-alpine-x64-${{ env.VERSION }}.vsix - asset_name: csharp-alpine-x64-${{ env.VERSION }}.vsix - asset_content_type: application/zip - - - name: Upload release build (win32-arm64) - id: upload-release-asset-win32-arm64 - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ github.event.release.upload_url }} - asset_path: ./vsix/csharp-win32-arm64-${{ env.VERSION }}.vsix - asset_name: csharp-win32-arm64-${{ env.VERSION }}.vsix - asset_content_type: application/zip - - - name: Upload release build (win32-ia32) - id: upload-release-asset-win32-ia32 - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ github.event.release.upload_url }} - asset_path: ./vsix/csharp-win32-ia32-${{ env.VERSION }}.vsix - asset_name: csharp-win32-ia32-${{ env.VERSION }}.vsix - asset_content_type: application/zip - - - name: Upload release build (win32-x64) - id: upload-release-asset-win32-x64 - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ github.event.release.upload_url }} - asset_path: ./vsix/csharp-win32-x64-${{ env.VERSION }}.vsix - asset_name: csharp-win32-x64-${{ env.VERSION }}.vsix + asset_path: ./vsix/csharp-${{ env.VERSION }}.vsix + asset_name: csharp-platform-neutral-${{ env.VERSION }}.vsix asset_content_type: application/zip