File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Release
22
33on :
4- push :
5- branches : [ main ]
6-
7- env :
8- productNamespacePrefix : " Splat "
4+ workflow_dispatch :
5+
6+ permissions :
7+ contents : write
8+ id-token : write
99
1010jobs :
1111 release :
1212 uses : reactiveui/actions-common/.github/workflows/workflow-common-release.yml@main
1313 with :
14- configuration : Release
15- productNamespacePrefix : " Splat"
16- useVisualStudioPreview : false
17- useMauiCheckDotNetTool : false
14+ solutionFile : Splat.DI.SourceGenerator.slnx
1815 secrets :
19- SIGN_CLIENT_USER_ID : ${{ secrets.SIGN_CLIENT_USER_ID }}
20- SIGN_CLIENT_SECRET : ${{ secrets.SIGN_CLIENT_SECRET }}
21- SIGN_CLIENT_CONFIG : ${{ secrets.SIGN_CLIENT_CONFIG }}
22- NUGET_API_KEY : ${{ secrets.NUGET_API_KEY }}
16+ ES_USERNAME : ${{ secrets.ES_USERNAME }}
17+ ES_PASSWORD : ${{ secrets.ES_PASSWORD }}
18+ CREDENTIAL_ID : ${{ secrets.CREDENTIAL_ID }}
19+ ES_TOTP_SECRET : ${{ secrets.ES_TOTP_SECRET }}
20+
21+ publish-nuget :
22+ needs : release
23+ runs-on : ubuntu-latest
24+ environment :
25+ name : release
26+ permissions :
27+ id-token : write
28+ steps :
29+ - name : Download signed packages
30+ uses : actions/download-artifact@v6
31+ with :
32+ name : signed-nuget
33+
34+ - name : Setup .NET
35+ uses : actions/setup-dotnet@v5
36+
37+ - name : NuGet login (OIDC trusted publishing)
38+ id : nuget-login
39+ uses : NuGet/login@v1
40+ with :
41+ user : ${{ secrets.NUGET_USER }}
42+
43+ - name : Push to NuGet
44+ shell : bash
45+ run : |
46+ for pkg in *.nupkg; do
47+ dotnet nuget push "$pkg" --source https://api.nuget.org/v3/index.json --api-key "${{ steps.nuget-login.outputs.NUGET_API_KEY }}"
48+ done
49+
50+ create-release :
51+ needs : [release, publish-nuget]
52+ uses : reactiveui/actions-common/.github/workflows/workflow-common-create-release.yml@main
53+ with :
54+ version : ${{ needs.release.outputs.semver2 }}
You can’t perform that action at this time.
0 commit comments