Actually use env
This commit is contained in:
parent
81e545a1e3
commit
16aa686ae7
1 changed files with 2 additions and 2 deletions
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
|
|
@ -57,7 +57,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
github-token: ${{secrets.GITHUB_TOKEN}}
|
github-token: ${{secrets.GITHUB_TOKEN}}
|
||||||
script: |
|
script: |
|
||||||
console.log(env)
|
console.log(process.env)
|
||||||
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}`);
|
||||||
|
|
@ -65,7 +65,7 @@ jobs:
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
name: file,
|
name: file,
|
||||||
release_id: '${{env.release_id}}',
|
release_id: '${{process.env.release_id}}',
|
||||||
data: await fs.readFile(`./dist/${file}`)
|
data: await fs.readFile(`./dist/${file}`)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue