Skip to content

Rename Lagrange.OneBot-release to Lagrange.OneBot-release.yml #1

Rename Lagrange.OneBot-release to Lagrange.OneBot-release.yml

Rename Lagrange.OneBot-release to Lagrange.OneBot-release.yml #1

name: Lagrange.OneBot Release
jobs:
Build:
runs-on: windows-latest
strategy:
matrix:
runtimeIdentifier: [ win-x64, win-x86, linux-x64, linux-arm, linux-arm64, osx-x64, osx-arm64, linux-musl-x64, linux-musl-arm64 ]
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Install .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Build Lagrange.OneBot .NET 8.0
shell: powershell
run: |
dotnet publish Lagrange.OneBot/Lagrange.OneBot.csproj --self-contained -p:PublishSingleFile=true -p:IncludeContentInSingleFile=true -p:RuntimeIdentifier=${{ matrix.runtimeIdentifier }} --framework net8.0
- name: Upload binary files(${{ matrix.runtimeIdentifier }}) for .NET 8.0
uses: actions/upload-artifact@v3
with:
name: Lagrange.OneBot_${{ matrix.runtimeIdentifier }}_8.0
path: Lagrange.OneBot/bin/Release/net8.0/${{ matrix.runtimeIdentifier }}/publish