Skip to content

Commit 311f4aa

Browse files
committed
fixed workflow
1 parent c9907ed commit 311f4aa

File tree

2 files changed

+8
-27
lines changed

2 files changed

+8
-27
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,7 @@ jobs:
2323
dotnet publish -c Release --no-self-contained -r win-x64 -o publish -p:PublishTrimmed=true
2424
vpk download github --repoUrl https://github.com/rgbcraft/NewRGBLauncher/
2525
vpk pack -u NewRGB -o releases -p publish -f net8-x64-desktop -v ${{github.ref_name}}
26-
- name: Upload
27-
uses: actions/upload-artifact@v4
28-
with:
29-
name: NewRGB-Win
30-
path: releases/*
31-
- name: Publish in release
32-
uses: softprops/action-gh-release@v2
33-
if: github.ref_type == 'tag'
34-
with:
35-
files: |
36-
releases/*
37-
token: ${{ secrets.GITHUB_TOKEN }}
26+
vpk upload github --repoUrl "https://github.com/rgbcraft/NewRGBLauncher/" --merge --releaseName v${{github.ref_name}} --tag ${{github.ref_name}} --token ${{ secrets.GITHUB_TOKEN }}
3827
build-linux:
3928
runs-on: ubuntu-latest
4029
steps:
@@ -52,16 +41,4 @@ jobs:
5241
- name: Build
5342
run: |
5443
chmod +x build-linux.sh
55-
bash build-linux.sh ${{github.ref_name}}
56-
- name: Upload
57-
uses: actions/upload-artifact@v4
58-
with:
59-
name: NewRGB-Linux
60-
path: releases/*
61-
- name: Publish in release
62-
uses: softprops/action-gh-release@v2
63-
if: github.ref_type == 'tag'
64-
with:
65-
files: |
66-
releases/*
67-
token: ${{ secrets.GITHUB_TOKEN }}
44+
bash build-linux.sh ${{github.ref_name}} ${{ secrets.GITHUB_TOKEN }}

build-linux.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,12 @@ dotnet publish -c Release --self-contained -r linux-x64 -o "$PUBLISH_DIR" -p:Pub
2020

2121
echo ""
2222
echo "Downloading latest release"
23-
vpk download github --repoUrl https://github.com/rgbcraft/NewRGBLauncher/
23+
vpk download github --repoUrl "https://github.com/rgbcraft/NewRGBLauncher/"
2424

2525
echo ""
2626
echo "Building Velopack Release v$BUILD_VERSION"
27-
vpk pack -u NewRGB -v "$BUILD_VERSION" -o "$RELEASE_DIR" -p "$PUBLISH_DIR"
27+
vpk pack -u NewRGB -v "$BUILD_VERSION" -o "$RELEASE_DIR" -p "$PUBLISH_DIR"
28+
29+
echo ""
30+
echo "Uploading..."
31+
vpk upload github --repoUrl "https://github.com/rgbcraft/NewRGBLauncher/" --merge --releaseName "v$1" --tag "$1" --token "$2"

0 commit comments

Comments
 (0)