File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed
Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change @@ -120,6 +120,46 @@ jobs:
120120 exit 1
121121 }
122122
123+ publish-feedz-io :
124+ needs : [ build-test, validate-packages ]
125+ runs-on : ubuntu-latest
126+ if : |
127+ github.event.repository.fork == false &&
128+ (github.ref_name == github.event.repository.default_branch || startsWith(github.ref, 'refs/tags/'))
129+
130+ environment :
131+ name : feedz.io
132+
133+ permissions :
134+ contents : read
135+ id-token : write
136+
137+ steps :
138+
139+ - name : Download packages
140+ uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
141+ with :
142+ name : packages-windows
143+
144+ - name : Setup .NET SDK
145+ uses : actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
146+ with :
147+ dotnet-version : ${{ needs.build-test.outputs.dotnet-sdk-version }}
148+
149+ - uses : grafana/shared-workflows/actions/get-vault-secrets@9f37f656e063f0ad0b0bfc38d49894b57d363936 # get-vault-secrets/v1.2.1
150+ id : get-token
151+ with :
152+ export_env : false
153+ repo_secrets : |
154+ token=feedz-io:token
155+
156+ - name : Push NuGet packages to feedz.io
157+ shell : bash
158+ env :
159+ API_KEY : ${{ fromJSON(steps.get-token.outputs.secrets).token }}
160+ SOURCE : ' https://f.feedz.io/${{ github.repository }}/nuget/index.json'
161+ run : dotnet nuget push "*.nupkg" --api-key "${API_KEY}" --skip-duplicate --source "${SOURCE}"
162+
123163 publish-nuget :
124164 needs : [ build-test, validate-packages ]
125165 runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments