From f244272ca0d700e5543963c5a9ef344c023ef208 Mon Sep 17 00:00:00 2001 From: Andrea Settimi Date: Wed, 17 Apr 2024 10:42:28 +0200 Subject: [PATCH] ADD-WIP: testing automatic release artifact --- .github/workflows/publish.yml | 37 +++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 3ab4850..8fbd0ff 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -163,5 +163,42 @@ jobs: run: | vsce show ibois-epfl.script-sync + ########################### release artifacts ############################ + release_artifacts: + needs: [publish_yak, publish_vsix] + runs-on: windows-latest + steps: + - uses: actions/checkout@v2 + - name: Download Yak artifact + uses: actions/download-artifact@v2 + with: + name: scriptsync_yak_package + path: yaker\build + + - name: Download VSIX artifact + uses: actions/download-artifact@v2 + with: + name: script-sync-vsix + path: VSCode\scriptsync + + - name: Upload .vsix artifact + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ github.event.release.upload_url }} + asset_path: ./VSCode/scriptsync/script-sync-vsix + asset_name: script-sync-vsix.vsix + asset_content_type: application/octet-stream + + - name: Upload .yak artifact + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ github.event.release.upload_url }} + asset_path: ./yaker/build/scriptsync_yak_package + asset_name: scriptsync_yak_package.yak + asset_content_type: application/octet-stream \ No newline at end of file