From 64770ae44340cae35c302d17088368d989a93c87 Mon Sep 17 00:00:00 2001 From: theoleuthardt Date: Thu, 13 Mar 2025 12:19:06 +0100 Subject: [PATCH] fix: github token for uploading artifacts + windows uploading artifact --- .github/workflows/release.yml | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dc50439..a8e4860 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,6 +12,9 @@ on: - 'YES' - 'PLS DONT' +permissions: + contents: write + jobs: build: runs-on: ${{ matrix.os }} @@ -101,14 +104,21 @@ jobs: if: runner.os == 'Windows' run: | cd ${{ steps.get-output-dir.outputs.output_dir }} - powershell Compress-Archive -Path .\* -DestinationPath ..\..\DinoGame-${{ runner.os }}.zip - shell: bash + Compress-Archive -Path .\* -DestinationPath ..\DinoGame-${{ runner.os }}.zip + shell: powershell + + - name: List files after zipping + if: runner.os == 'Windows' + run: | + dir ..\DinoGame-${{ runner.os }}.zip + shell: powershell + - name: Upload Artifact uses: actions/upload-artifact@v4 with: name: DinoGame-${{ runner.os }} - path: DinoGame-${{ runner.os }}.zip + path: ..\DinoGame-${{ runner.os }}.zip release: needs: build @@ -127,4 +137,6 @@ jobs: tag_name: ${{ github.ref_name }} name: Release ${{ github.ref_name }} draft: false - prerelease: false \ No newline at end of file + prerelease: false + env: + GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }} \ No newline at end of file