File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ on :
2+ push :
3+ tags :
4+ - *
5+
6+ env :
7+ DOTNET_VERSION : ' 10.0.x'
8+ NUGET_REGISTRY_URL : https://nuget.pkg.github.com/devpikachu/index.json
9+ NUGET_REGISTRY_USERNAME : devpikachu
10+
11+ jobs :
12+ build :
13+ name : Build
14+ runs-on : ubuntu-latest
15+ strategy :
16+ matrix :
17+ project :
18+ - Common.Build
19+ - Common.Build.Generator
20+ steps :
21+ - name : Checkout
22+ uses : actions/checkout@v6
23+ - name : Setup .NET SDK 10
24+ uses : actions/setup-dotnet@v5
25+ with :
26+ dotnet-version : ${{ env.DOTNET_VERSION }}
27+ - name : Build
28+ run : bash build.sh --target Package --general-project ${{ matrix.project }} --general-version $GITHUB_REF_NAME
29+ - name : Publish
30+ run : |
31+ dotnet nuget add source --name github --username $NUGET_REGISTRY_USERNAME --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text $NUGET_REGISTRY_URL
32+ dotnet nuget push --source github out/*.nupkg
Original file line number Diff line number Diff line change 1+ on :
2+ push :
3+ tags :
4+ - *
5+
6+ env :
7+ DOTNET_VERSION : ' 10.0.x'
8+
9+ jobs :
10+ build :
11+ name : Build
12+ runs-on : ubuntu-latest
13+ strategy :
14+ matrix :
15+ project :
16+ - Common.Build
17+ - Common.Build.Generator
18+ steps :
19+ - name : Checkout
20+ uses : actions/checkout@v6
21+ - name : Setup .NET SDK 10
22+ uses : actions/setup-dotnet@v5
23+ with :
24+ dotnet-version : ${{ env.DOTNET_VERSION }}
25+ - name : Build
26+ run : bash build.sh --target Archive --general-project ${{ matrix.project }} --general-version $GITHUB_REF_NAME
27+ - name : Release
28+ uses : softprops/action-gh-release@v2
29+ with :
30+ draft : true
31+ files : out/*.zip
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments