Skip to content

Commit

Permalink
🏗️ gh-actions: update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
database64128 committed Mar 21, 2024
1 parent 8301a97 commit d176976
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
name: Build
strategy:
matrix:
os: [ubuntu-latest, windows-2022]
os: [ubuntu-latest, windows-latest]
fail-fast: false
runs-on: ${{ matrix.os }}
defaults:
Expand Down Expand Up @@ -55,12 +55,12 @@ jobs:
dotnet publish CubicBot.Telegram -c Release $MSBUILD_PROPS -r linux-x64 --self-contained
- name: Publish self-contained for Windows ARM64
if: matrix.os == 'windows-2022'
if: matrix.os == 'windows-latest'
run: |
dotnet publish CubicBot.Telegram -c Release $MSBUILD_PROPS -r win-arm64 --self-contained
- name: Publish self-contained for Windows x64
if: matrix.os == 'windows-2022'
if: matrix.os == 'windows-latest'
run: |
dotnet publish CubicBot.Telegram -c Release $MSBUILD_PROPS -r win-x64 --self-contained
Expand All @@ -87,21 +87,21 @@ jobs:
path: CubicBot.Telegram/bin/Release/net7.0/publish/

- name: Upload CubicBot.Telegram artifacts for Windows ARM64
if: matrix.os == 'windows-2022'
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/

- name: Upload CubicBot.Telegram artifacts for Windows x64
if: matrix.os == 'windows-2022'
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/

- name: Upload CubicBot.Telegram artifacts for Windows framework-dependent
if: matrix.os == 'windows-2022'
if: matrix.os == 'windows-latest'
uses: actions/upload-artifact@v4
with:
name: cubic-bot-telegram-${{ github.sha }}-windows
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
name: Publish and upload
strategy:
matrix:
os: [ubuntu-latest, windows-2022]
os: [ubuntu-latest, windows-latest]
fail-fast: false
runs-on: ${{ matrix.os }}
defaults:
Expand Down Expand Up @@ -42,12 +42,12 @@ jobs:
dotnet publish CubicBot.Telegram -c Release $MSBUILD_PROPS -r linux-x64 --self-contained
- name: Publish self-contained for Windows ARM64
if: matrix.os == 'windows-2022'
if: matrix.os == 'windows-latest'
run: |
dotnet publish CubicBot.Telegram -c Release $MSBUILD_PROPS -r win-arm64 --self-contained
- name: Publish self-contained for Windows x64
if: matrix.os == 'windows-2022'
if: matrix.os == 'windows-latest'
run: |
dotnet publish CubicBot.Telegram -c Release $MSBUILD_PROPS -r win-x64 --self-contained
Expand All @@ -67,7 +67,7 @@ jobs:
tar -acf ../../cubic-bot-telegram-${{ github.ref_name }}-linux-x64.tar.zst .
- name: Package for Windows
if: matrix.os == 'windows-2022'
if: matrix.os == 'windows-latest'
run: |
# CubicBot.Telegram
cd CubicBot.Telegram/bin/Release/net7.0/publish
Expand All @@ -93,7 +93,7 @@ jobs:

- name: Upload release assets for Windows
uses: svenstaro/upload-release-action@v2
if: matrix.os == 'windows-2022'
if: matrix.os == 'windows-latest'
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: CubicBot.Telegram/bin/Release/net7.0/cubic-bot-telegram-*-windows*.*
Expand Down

0 comments on commit d176976

Please sign in to comment.