更新依赖 #28
This file contains hidden or 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: Build | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | |
| steps: | |
| - name: Checkout plugin | |
| uses: actions/checkout@v6.0.2 | |
| with: | |
| path: SamplePlugin | |
| - name: Checkout SDK | |
| uses: actions/checkout@v6.0.2 | |
| with: | |
| repository: InkCanvasForClass/community | |
| path: community | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v5.2.0 | |
| with: | |
| dotnet-version: '6.0.x' | |
| - name: Restore dependencies | |
| run: dotnet restore SamplePlugin/SamplePlugin.csproj | |
| - name: Build | |
| run: dotnet build SamplePlugin/SamplePlugin.csproj --configuration Release --no-restore | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v7.0.1 | |
| with: | |
| name: SamplePlugin | |
| path: SamplePlugin/bin/Release/net6.0-windows10.0.19041.0/ |