Skip to content

Commit ab5be34

Browse files
authored
Merge pull request #8 from AaronBeier/master
fix empty version failing build
2 parents 3758ee4 + d93b13c commit ab5be34

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.github/workflows/opus.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
submodules: recursive
3232

3333
- name: Checkout latest Tag
34+
id: print-version
3435
shell: bash
3536
run: |
3637
git fetch --tags
@@ -194,8 +195,8 @@ jobs:
194195
shell: bash
195196
env:
196197
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
198+
VERSION: ${{ needs.build.outputs.version }}
197199
run: |
198-
VERSION=${{ needs.build.outputs.version }}
199200
VERSION="${VERSION:1}"
200201
dotnet pack ./build/DSharpPlus.Natives.Opus.csproj -c Release -p:Version="$VERSION.${{ github.run_number }}"
201202
dotnet nuget push "artifacts/**" --skip-duplicate -k "$NUGET_API_KEY" -s https://api.nuget.org/v3/index.json

.github/workflows/sodium.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
submodules: recursive
2929

3030
- name: Checkout latest Tag
31+
id: print-version
3132
shell: bash
3233
run: |
3334
git fetch --tags
@@ -200,15 +201,15 @@ jobs:
200201
cp temp/ARM64/libsodium.dll lib/sodium/win-arm64/native/libsodium.dll
201202
cp temp/ARM64/libsodium.so lib/sodium/linux-arm64/native/libsodium.so
202203
cp temp/ARM64/libsodium.dylib lib/sodium/osx-arm64/native/libsodium.dylib
203-
cp temp/x64/libsodium.musl.so lib/zstd/linux-musl-x64/native/libsodium.so
204-
cp temp/ARM64/libsodium.musl.so lib/zstd/linux-musl-arm64/native/libsodium.so
204+
cp temp/x64/libsodium.musl.so lib/sodium/linux-musl-x64/native/libsodium.so
205+
cp temp/ARM64/libsodium.musl.so lib/sodium/linux-musl-arm64/native/libsodium.so
205206
206207
- name: Pack DSharpPlus.Natives.Sodium
207208
shell: bash
208209
env:
209210
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
211+
VERSION: ${{ needs.build.outputs.version }}
210212
run: |
211-
VERSION=${{ needs.build.outputs.version }}
212213
VERSION="${VERSION%%-*}"
213214
dotnet pack ./build/DSharpPlus.Natives.Sodium.csproj -c Release -p:Version="$VERSION.${{ github.run_number }}"
214215
dotnet nuget push "artifacts/**" --skip-duplicate -k "$NUGET_API_KEY" -s https://api.nuget.org/v3/index.json

.github/workflows/zstd.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
submodules: recursive
3232

3333
- name: Checkout latest Tag
34+
id: print-version
3435
shell: bash
3536
run: |
3637
git fetch --tags

0 commit comments

Comments
 (0)