Updates??
This commit is contained in:
parent
74ecf0e248
commit
b6f0ecd1b4
1 changed files with 8 additions and 4 deletions
12
.github/workflows/build.yml
vendored
12
.github/workflows/build.yml
vendored
|
|
@ -12,6 +12,7 @@ permissions:
|
|||
pull-requests: write
|
||||
|
||||
jobs:
|
||||
# This has to be done separately, else each and every os in the matrix will try to create their own tag
|
||||
prebuild:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
|
@ -56,15 +57,18 @@ jobs:
|
|||
owner: oitsjustjose
|
||||
repo: MinecraftOreTextureGenerator
|
||||
excludes: draft
|
||||
- name: Put Newest Release in Environment
|
||||
run: |
|
||||
echo "{release_id}={steps.latest_release.outputs.id}" >> $GITHUB_ENV
|
||||
# - name: Put Newest Release in Environment
|
||||
# run: |
|
||||
# echo "{release_id}={steps.latest_release.outputs.id}" >> $GITHUB_ENV
|
||||
- name: Create Release
|
||||
uses: actions/github-script@v2
|
||||
env:
|
||||
RELEASE_ID: ${{ steps.latest_release.outputs.id }}
|
||||
with:
|
||||
github-token: ${{secrets.GITHUB_TOKEN}}
|
||||
script: |
|
||||
console.log(process.env)
|
||||
console.log('${{RELEASE_ID}}')
|
||||
const fs = require('fs').promises;
|
||||
for (let file of await fs.readdir('./dist')) {
|
||||
console.log('uploading', `./dist/${file}`);
|
||||
|
|
@ -72,7 +76,7 @@ jobs:
|
|||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
name: file,
|
||||
release_id: process.env.release_id,
|
||||
release_id: '${{RELEASE_ID}}',
|
||||
data: await fs.readFile(`./dist/${file}`)
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue