Skip to content

Commit

Permalink
🏗️ gh-actions: fix upload paths
Browse files Browse the repository at this point in the history
  • Loading branch information
database64128 committed Mar 21, 2024
1 parent d176976 commit 13edb86
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,39 +70,39 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: cubic-bot-telegram-${{ github.sha }}-linux-arm64
path: CubicBot.Telegram/bin/Release/net7.0/linux-arm64/publish/
path: CubicBot.Telegram/bin/Release/net8.0/linux-arm64/publish/

- name: Upload CubicBot.Telegram artifacts for Linux x64
if: matrix.os == 'ubuntu-latest'
uses: actions/upload-artifact@v4
with:
name: cubic-bot-telegram-${{ github.sha }}-linux-x64
path: CubicBot.Telegram/bin/Release/net7.0/linux-x64/publish/
path: CubicBot.Telegram/bin/Release/net8.0/linux-x64/publish/

- name: Upload CubicBot.Telegram artifacts for Linux framework-dependent
if: matrix.os == 'ubuntu-latest'
uses: actions/upload-artifact@v4
with:
name: cubic-bot-telegram-${{ github.sha }}-linux
path: CubicBot.Telegram/bin/Release/net7.0/publish/
path: CubicBot.Telegram/bin/Release/net8.0/publish/

- name: Upload CubicBot.Telegram artifacts for Windows ARM64
if: matrix.os == 'windows-latest'
uses: actions/upload-artifact@v4
with:
name: cubic-bot-telegram-${{ github.sha }}-windows-arm64
path: CubicBot.Telegram/bin/Release/net7.0/win-arm64/publish/
path: CubicBot.Telegram/bin/Release/net8.0/win-arm64/publish/

- name: Upload CubicBot.Telegram artifacts for Windows x64
if: matrix.os == 'windows-latest'
uses: actions/upload-artifact@v4
with:
name: cubic-bot-telegram-${{ github.sha }}-windows-x64
path: CubicBot.Telegram/bin/Release/net7.0/win-x64/publish/
path: CubicBot.Telegram/bin/Release/net8.0/win-x64/publish/

- name: Upload CubicBot.Telegram artifacts for Windows framework-dependent
if: matrix.os == 'windows-latest'
uses: actions/upload-artifact@v4
with:
name: cubic-bot-telegram-${{ github.sha }}-windows
path: CubicBot.Telegram/bin/Release/net7.0/publish/
path: CubicBot.Telegram/bin/Release/net8.0/publish/
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
ZSTD_NBTHREADS: 2
run: |
# CubicBot.Telegram
cd CubicBot.Telegram/bin/Release/net7.0/publish
cd CubicBot.Telegram/bin/Release/net8.0/publish
tar -acf ../cubic-bot-telegram-${{ github.ref_name }}-linux.tar.zst .
cd ../linux-arm64/publish
tar -acf ../../cubic-bot-telegram-${{ github.ref_name }}-linux-arm64.tar.zst .
Expand All @@ -70,7 +70,7 @@ jobs:
if: matrix.os == 'windows-latest'
run: |
# CubicBot.Telegram
cd CubicBot.Telegram/bin/Release/net7.0/publish
cd CubicBot.Telegram/bin/Release/net8.0/publish
7z a -tzip -mx=9 -mfb=128 ../cubic-bot-telegram-${{ github.ref_name }}-windows.zip .
7z a -t7z -m0=lzma2 -mx=9 -mfb=64 -md=64m -ms=on ../cubic-bot-telegram-${{ github.ref_name }}-windows.7z .
cd ../win-arm64/publish
Expand All @@ -86,7 +86,7 @@ jobs:
if: matrix.os == 'ubuntu-latest'
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: CubicBot.Telegram/bin/Release/net7.0/*.tar.zst
file: CubicBot.Telegram/bin/Release/net8.0/*.tar.zst
tag: ${{ github.ref }}
file_glob: true
prerelease: true
Expand All @@ -96,7 +96,7 @@ jobs:
if: matrix.os == 'windows-latest'
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: CubicBot.Telegram/bin/Release/net7.0/cubic-bot-telegram-*-windows*.*
file: CubicBot.Telegram/bin/Release/net8.0/cubic-bot-telegram-*-windows*.*
tag: ${{ github.ref }}
file_glob: true
prerelease: true

0 comments on commit 13edb86

Please sign in to comment.