Update build.yml

This commit is contained in:
liuzhihang 2022-11-14 23:47:25 +08:00 committed by GitHub
parent 7d9bac9b0d
commit 0c66d9b779
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ jobs:
cp -r theme.yaml settings.yaml templates $PRE_ZIP_FOLDER/
zip -r $ARTIFACT_PATHNAME $PRE_ZIP_FOLDER
- name: Upload a release asset
uses: actions/github-script@v6
uses: actions/github-script@v2
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
@ -79,7 +79,7 @@ jobs:
const artifactPathName = process.env.ARTIFACT_PATHNAME
const artifactName = process.env.ARTIFACT_NAME
console.log('Releasing', releaseId, artifactPathName, artifactName)
await octokit.repos.uploadReleaseAsset({
await github.repos.uploadReleaseAsset({
owner, repo,
release_id: releaseId,
name: artifactName,