Fix env
This commit is contained in:
parent
b6f0ecd1b4
commit
c2acb0d0f6
1 changed files with 2 additions and 2 deletions
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
|
|
@ -68,7 +68,7 @@ jobs:
|
||||||
github-token: ${{secrets.GITHUB_TOKEN}}
|
github-token: ${{secrets.GITHUB_TOKEN}}
|
||||||
script: |
|
script: |
|
||||||
console.log(process.env)
|
console.log(process.env)
|
||||||
console.log('${{RELEASE_ID}}')
|
console.log('${{env.RELEASE_ID}}')
|
||||||
const fs = require('fs').promises;
|
const fs = require('fs').promises;
|
||||||
for (let file of await fs.readdir('./dist')) {
|
for (let file of await fs.readdir('./dist')) {
|
||||||
console.log('uploading', `./dist/${file}`);
|
console.log('uploading', `./dist/${file}`);
|
||||||
|
|
@ -76,7 +76,7 @@ jobs:
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
name: file,
|
name: file,
|
||||||
release_id: '${{RELEASE_ID}}',
|
release_id: '${{env.RELEASE_ID}}',
|
||||||
data: await fs.readFile(`./dist/${file}`)
|
data: await fs.readFile(`./dist/${file}`)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue