Skip to content

Commit 9ac313a

Browse files
committed
CI: Fixed release script
1 parent 96794b9 commit 9ac313a

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

.github/workflows/release.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,26 @@ jobs:
8181
- uses: actions/download-artifact@v4
8282
with:
8383
path: artifacts
84-
- uses: "marvinpinto/action-automatic-releases@latest"
84+
85+
- name: Package Artifacts
86+
run: |
87+
mkdir -p release
88+
89+
# Copy Zip
90+
for d in artifacts/*-dll/ ; do
91+
folder="${d%/}"
92+
zipname="${folder}.zip"
93+
(cd "$folder" && zip -r "../../release/$(basename "$zipname")" .)
94+
done
95+
96+
# Copy Nuget
97+
cp artifacts/**/*.nupkg release/.
98+
99+
- name: Create GitHub Release
100+
uses: "marvinpinto/action-automatic-releases@latest"
85101
with:
86102
repo_token: "${{ secrets.GITHUB_TOKEN }}"
87103
automatic_release_tag: ${{ needs.tag.outputs.tag }}
88104
prerelease: true
89105
title: Release ${{ needs.tag.outputs.tag }}
90-
files: artifacts/**/*
106+
files: release/**/*

DiscordRPC/DiscordRPC.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ This is an unoffical, non-discord supported library.
3737
</dependencies>
3838
</metadata>
3939
<files>
40-
<file src="../README.md" target="docs\" />
40+
<file src="../README.md" target="/" />
4141
<!-- .NET 9 (modern) -->
4242
<file src="./bin/Release/net9.0/DiscordRPC.dll" target="lib\net9.0" />
4343
<file src="./bin/Release/net9.0/DiscordRPC.pdb" target="lib\net9.0" />

0 commit comments

Comments
 (0)