-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove auto-upload target for releases, as the runner may have an old…
… toolchain
- Loading branch information
1 parent
becf2bc
commit 5a8fe05
Showing
1 changed file
with
0 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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) | ||
}); |