Skip to content

Commit

Permalink
Remove auto-upload target for releases, as the runner may have an old…
Browse files Browse the repository at this point in the history
… toolchain
  • Loading branch information
stuarthayhurst committed Aug 12, 2023
1 parent becf2bc commit 5a8fe05
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/build-extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,26 +31,3 @@ jobs:
with:
name: [email protected]
path: build/[email protected]

- 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 = '[email protected]';
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)
});

0 comments on commit 5a8fe05

Please sign in to comment.