Skip to content

Commit

Permalink
Update release github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
muhammadsammy committed Sep 3, 2023
1 parent 96c266f commit 883ee65
Showing 1 changed file with 7 additions and 95 deletions.
102 changes: 7 additions & 95 deletions .github/workflows/release-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 883ee65

Please sign in to comment.