Update build.yml
This commit is contained in:
parent
7d9bac9b0d
commit
0c66d9b779
|
@ -68,7 +68,7 @@ jobs:
|
||||||
cp -r theme.yaml settings.yaml templates $PRE_ZIP_FOLDER/
|
cp -r theme.yaml settings.yaml templates $PRE_ZIP_FOLDER/
|
||||||
zip -r $ARTIFACT_PATHNAME $PRE_ZIP_FOLDER
|
zip -r $ARTIFACT_PATHNAME $PRE_ZIP_FOLDER
|
||||||
- name: Upload a release asset
|
- name: Upload a release asset
|
||||||
uses: actions/github-script@v6
|
uses: actions/github-script@v2
|
||||||
with:
|
with:
|
||||||
github-token: ${{secrets.GITHUB_TOKEN}}
|
github-token: ${{secrets.GITHUB_TOKEN}}
|
||||||
script: |
|
script: |
|
||||||
|
@ -79,7 +79,7 @@ jobs:
|
||||||
const artifactPathName = process.env.ARTIFACT_PATHNAME
|
const artifactPathName = process.env.ARTIFACT_PATHNAME
|
||||||
const artifactName = process.env.ARTIFACT_NAME
|
const artifactName = process.env.ARTIFACT_NAME
|
||||||
console.log('Releasing', releaseId, artifactPathName, artifactName)
|
console.log('Releasing', releaseId, artifactPathName, artifactName)
|
||||||
await octokit.repos.uploadReleaseAsset({
|
await github.repos.uploadReleaseAsset({
|
||||||
owner, repo,
|
owner, repo,
|
||||||
release_id: releaseId,
|
release_id: releaseId,
|
||||||
name: artifactName,
|
name: artifactName,
|
||||||
|
|
Loading…
Reference in New Issue