mirror of
https://github.com/theoleuthardt/DinoGame.git
synced 2026-06-13 01:17:56 +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'
|
||||
- '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
|
||||
prerelease: false
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue