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 : " SourceGenerators "
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
14+ solutionFile : reactiveui.sourcegenerators.slnx
15+ installWorkloads : true
1516 secrets :
16- SIGN_ACCOUNT_NAME : ${{ secrets.SIGN_ACCOUNT_NAME }}
17- SIGN_PROFILE_NAME : ${{ secrets.SIGN_PROFILE_NAME }}
18- AZURE_CLIENT_SECRET : ${{ secrets.AZURE_CLIENT_SECRET }}
19- AZURE_TENANT_ID : ${{ secrets.AZURE_TENANT_ID }}
20- AZURE_CLIENT_ID : ${{ secrets.AZURE_CLIENT_ID }}
21- NUGET_API_KEY : ${{ secrets.NUGET_API_KEY }}
17+ ES_USERNAME : ${{ secrets.ES_USERNAME }}
18+ ES_PASSWORD : ${{ secrets.ES_PASSWORD }}
19+ CREDENTIAL_ID : ${{ secrets.CREDENTIAL_ID }}
20+ ES_TOTP_SECRET : ${{ secrets.ES_TOTP_SECRET }}
21+
22+ publish-nuget :
23+ needs : release
24+ runs-on : ubuntu-latest
25+ environment :
26+ name : release
27+ permissions :
28+ id-token : write
29+ steps :
30+ - name : Download signed packages
31+ uses : actions/download-artifact@v8
32+ with :
33+ name : signed-nuget
34+
35+ - name : Setup .NET
36+ uses : actions/setup-dotnet@v5
37+
38+ - name : NuGet login (OIDC trusted publishing)
39+ id : nuget-login
40+ uses : NuGet/login@v1
41+ with :
42+ user : ${{ secrets.NUGET_USER }}
43+
44+ - name : Push to NuGet
45+ shell : bash
46+ run : |
47+ for pkg in *.nupkg; do
48+ dotnet nuget push "$pkg" --source https://api.nuget.org/v3/index.json --api-key "${{ steps.nuget-login.outputs.NUGET_API_KEY }}"
49+ done
50+
51+ create-release :
52+ needs : [release, publish-nuget]
53+ uses : reactiveui/actions-common/.github/workflows/workflow-common-create-release.yml@main
54+ with :
55+ version : ${{ needs.release.outputs.semver2 }}
You can’t perform that action at this time.
0 commit comments