From 5a8fe050314e23921286f0c65d71dab62387dbb3 Mon Sep 17 00:00:00 2001 From: Stuart Hayhurst Date: Sat, 12 Aug 2023 23:27:31 +0100 Subject: [PATCH] Remove auto-upload target for releases, as the runner may have an old toolchain --- .github/workflows/build-extension.yml | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/.github/workflows/build-extension.yml b/.github/workflows/build-extension.yml index 15f32ca..01bc711 100644 --- a/.github/workflows/build-extension.yml +++ b/.github/workflows/build-extension.yml @@ -31,26 +31,3 @@ jobs: with: name: PrivacyMenu@stuarthayhurst.shell-extension.zip path: build/PrivacyMenu@stuarthayhurst.shell-extension.zip - - - name: Upload extension bundle to release - uses: actions/github-script@v6 - if: startsWith(github.ref, 'refs/tags/v') - with: - script: | - const fs = require('fs'); - const tag = context.ref.replace('refs/tags/', ''); - //Get release for this tag - const release = await github.rest.repos.getReleaseByTag({ - owner: context.payload.repository.owner.login, - repo: context.payload.repository.name, - tag - }); - //Upload - const bundleName = 'PrivacyMenu@stuarthayhurst.shell-extension.zip'; - await github.rest.repos.uploadReleaseAsset({ - owner: context.payload.repository.owner.login, - repo: context.payload.repository.name, - release_id: release.data.id, - name: bundleName, - data: await fs.readFileSync('build/' + bundleName) - });