File tree Expand file tree Collapse file tree 2 files changed +60
-0
lines changed
Expand file tree Collapse file tree 2 files changed +60
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build Artifacts
2+
3+ on :
4+ push :
5+ branches :
6+ - ' *'
7+ pull_request :
8+ branches :
9+ - ' *'
10+ workflow_dispatch :
11+
12+ jobs :
13+ build :
14+ name : Build Artifacts
15+ runs-on : ubuntu-latest
16+ permissions :
17+ contents : read
18+ steps :
19+ - name : Checkout Repo
20+ uses : actions/checkout@v6
21+
22+ - name : Setup Environment
23+ uses : ./.github/actions/setup-env
24+
25+ - name : Publish Release Build
26+ run : dotnet publish ./ReQuesty/ReQuesty.csproj --configuration Release --output ./publish
27+
28+ - name : Upload Build Artifacts
29+ uses : actions/upload-artifact@v6
30+ with :
31+ name : ' build.zip'
32+ path : ./publish/*
Original file line number Diff line number Diff line change 1+ name : Release .NET tool
2+
3+ on :
4+ push :
5+ branches :
6+ - release
7+
8+ jobs :
9+ build :
10+ runs-on : ubuntu-latest
11+ permissions :
12+ contents : read
13+ steps :
14+ - name : Checkout
15+ uses : actions/checkout@v6
16+ with :
17+ fetch-depth : 0
18+
19+ - name : Setup Environment
20+ uses : ./.github/actions/setup-env
21+
22+ - name : Build Artifacts
23+ run : dotnet pack ./ReQuesty/ReQuesty.csproj --configuration Release --output "./artifacts"
24+
25+ - name : Push to NuGet
26+ env :
27+ NUGET_API_KEY : ${{ secrets.NUGET_API_KEY }}
28+ run : dotnet nuget push ./artifacts/*.nupkg --source https://api.nuget.org/v3/index.json --api-key $NUGET_API_KEY
You can’t perform that action at this time.
0 commit comments