From b6f0ecd1b401748a2c74098436f173226f1eb52c Mon Sep 17 00:00:00 2001 From: oitsjustjose Date: Tue, 7 Jun 2022 11:25:45 -0500 Subject: [PATCH] Updates?? --- .github/workflows/build.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0863209..7d32a80 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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}`) }); }