From 1710fff55153ef5a802febb8b6af99fe3d9bd74e Mon Sep 17 00:00:00 2001 From: Muhammad Sammy Date: Sat, 2 Sep 2023 00:33:00 +0300 Subject: [PATCH] update build ci --- .github/workflows/ci.yml | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0151d5487..0f4257127 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,8 +41,27 @@ jobs: - name: Build VSIXs run: gulp 'vsix:release:package' - - name: Upload VSIX build artifacts + + - name: Get package version + run: node -e "console.log('VERSION=' + require('./package.json').version)" >> $GITHUB_ENV + + - name: Upload build artifact (darwin-x64) + id: upload-release-asset-darwin-x64 + uses: actions/upload-artifact@v2 + with: + path: ./vsix/csharp-darwin-x64-${{ env.VERSION }}.vsix + name: csharp-darwin-x64.vsix + + - name: Upload build artifact (linux-x64) + id: upload-release-asset-linux-x64 + uses: actions/upload-artifact@v2 + with: + path: ./vsix/csharp-linux-x64-${{ env.VERSION }}.vsix + name: csharp-linux-x64.vsix + + - name: Upload build artifact (win32-x64) + id: upload-release-asset-win32-x64 uses: actions/upload-artifact@v2 with: - name: ci-extension-artifact - path: ./vsix/*.vsix + path: ./vsix/csharp-win32-x64-${{ env.VERSION }}.vsix + name: csharp-win32-x64.vsix