更新版本 更新Nuget信息 #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI-Build | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ "**" ] | |
env: | |
ACTIONS_ALLOW_UNSECURE_COMMANDS: true | |
compile-flags: "-c Release" | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Test | |
run: dotnet test src/PluginLoader/BlessingStudio.PluginLoader.csproj | |
test_build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Test | |
run: dotnet build src/PluginLoader/BlessingStudio.PluginLoader.csproj | |
build: | |
runs-on: ubuntu-latest | |
needs: [test, test_build] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Build | |
run: dotnet build src/PluginLoader/BlessingStudio.PluginLoader.csproj ${{ env.compile-flags }} | |
- name: Publish | |
uses: brandedoutcast/[email protected] | |
with: | |
PROJECT_FILE_PATH: src/PluginLoader/BlessingStudio.PluginLoader.csproj | |
NUGET_KEY: ${{secrets.NUGET_API_KEY}} |