Skip to content

Commit

Permalink
fixed workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Enn3Developer committed May 26, 2024
1 parent 5390b20 commit 4ae7774
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,20 @@ jobs:
dotnet tool update -g vpk
- name: Build
run: |
dotnet publish -c Release --no-self-contained -r win-x64 -o %~dp0publish -p:PublishTrimmed=true
vpk pack -u NewRGB -o %~dp0releases -p %~dp0publish -f net8-x64-desktop -v ${{github.ref_name}}
dir
dotnet publish -c Release --no-self-contained -r win-x64 -o publish -p:PublishTrimmed=true
vpk download http --url https://github.com/rgbcraft/NewRGBLauncher/releases/latest
vpk pack -u NewRGB -o releases -p publish -f net8-x64-desktop -v ${{github.ref_name}}
- name: Upload
uses: actions/upload-artifact@v4
with:
name: NewRGB-Win
path: \releases
path: releases/*
- name: Publish in release
uses: softprops/action-gh-release@v2
if: github.ref_type == 'tag'
with:
files: |
\releases
releases/*
token: ${{ secrets.GITHUB_TOKEN }}
build-linux:
runs-on: ubuntu-latest
Expand All @@ -51,8 +51,9 @@ jobs:
dotnet tool update -g vpk
- name: Build
run: |
chmod +x build-linux.sh
bash build-linux.sh ${{github.ref_name}}
dotnet publish -c Release --self-contained -r linux-x64 -o publish -p:PublishTrimmed=True
vpk download http --url https://github.com/rgbcraft/NewRGBLauncher/releases/latest
vpk pack -u NewRGB -v "${{github.ref_name}}" -o "release" -p "publish"
- name: Upload
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 4ae7774

Please sign in to comment.