Skip to content

🔧 build(FlubuCore): 调整构建脚本 #2

🔧 build(FlubuCore): 调整构建脚本

🔧 build(FlubuCore): 调整构建脚本 #2

Workflow file for this run

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: .NET
run-name: ${{ github.actor }} is publishing a nuget package 🚀
jobs:
if: github.ref_name == 'main'

Check failure on line 8 in .github/workflows/dotnet.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/dotnet.yml

Invalid workflow file

You have an error in your yaml syntax on line 8
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Install FlubuCore
run: dotnet tool install --global FlubuCore.Tool --version 8.0.0
- name: Build
run: flubu Build
- name: Test
run: flubu test
- name: pack
run: flubu nuget.publish -nugetKey=${{ secrets.NUGET_API_KEY }} -env=prod