mirror of
https://github.com/theoleuthardt/DinoGame.git
synced 2026-06-13 09:27:57 +00:00
fix: github token for uploading artifacts + windows uploading artifact
This commit is contained in:
parent
2c6b08bc44
commit
64770ae443
1 changed files with 16 additions and 4 deletions
20
.github/workflows/release.yml
vendored
20
.github/workflows/release.yml
vendored
|
|
@ -12,6 +12,9 @@ on:
|
||||||
- 'YES'
|
- 'YES'
|
||||||
- 'PLS DONT'
|
- 'PLS DONT'
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
@ -101,14 +104,21 @@ jobs:
|
||||||
if: runner.os == 'Windows'
|
if: runner.os == 'Windows'
|
||||||
run: |
|
run: |
|
||||||
cd ${{ steps.get-output-dir.outputs.output_dir }}
|
cd ${{ steps.get-output-dir.outputs.output_dir }}
|
||||||
powershell Compress-Archive -Path .\* -DestinationPath ..\..\DinoGame-${{ runner.os }}.zip
|
Compress-Archive -Path .\* -DestinationPath ..\DinoGame-${{ runner.os }}.zip
|
||||||
shell: bash
|
shell: powershell
|
||||||
|
|
||||||
|
- name: List files after zipping
|
||||||
|
if: runner.os == 'Windows'
|
||||||
|
run: |
|
||||||
|
dir ..\DinoGame-${{ runner.os }}.zip
|
||||||
|
shell: powershell
|
||||||
|
|
||||||
|
|
||||||
- name: Upload Artifact
|
- name: Upload Artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: DinoGame-${{ runner.os }}
|
name: DinoGame-${{ runner.os }}
|
||||||
path: DinoGame-${{ runner.os }}.zip
|
path: ..\DinoGame-${{ runner.os }}.zip
|
||||||
|
|
||||||
release:
|
release:
|
||||||
needs: build
|
needs: build
|
||||||
|
|
@ -127,4 +137,6 @@ jobs:
|
||||||
tag_name: ${{ github.ref_name }}
|
tag_name: ${{ github.ref_name }}
|
||||||
name: Release ${{ github.ref_name }}
|
name: Release ${{ github.ref_name }}
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: false
|
prerelease: false
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue