@@ -114,27 +114,6 @@ jobs:
114114 if : steps.release.outputs.changed == 'true'
115115 run : git push --follow-tags
116116
117- - name : Install Codecov CLI
118- if : always()
119- run : |
120- curl https://keybase.io/codecovsecurity/pgp_keys.asc \
121- | gpg --no-default-keyring --keyring trustedkeys.gpg --import
122- curl -Os https://cli.codecov.io/latest/linux/codecov
123- curl -Os https://cli.codecov.io/latest/linux/codecov.SHA256SUM
124- curl -Os https://cli.codecov.io/latest/linux/codecov.SHA256SUM.sig
125- gpg --no-default-keyring --keyring trustedkeys.gpg \
126- --verify codecov.SHA256SUM.sig codecov.SHA256SUM
127- shasum -a 256 -c codecov.SHA256SUM
128- sudo chmod +x codecov
129- sudo mv codecov /usr/local/bin/codecov
130-
131- - name : Upload coverage to Codecov
132- if : always()
133- continue-on-error : true
134- env :
135- CODECOV_TOKEN : ${{ secrets.FLOWTHRU_CODECOV_TOKEN }}
136- run : pnpm nx run tests:coverage:upload
137-
138117 - name : Create GitHub Release Draft
139118 if : steps.release.outputs.changed == 'true'
140119 env :
@@ -164,27 +143,6 @@ jobs:
164143 VERSION="v${{ steps.release.outputs.version }}"
165144 gh release upload "${VERSION}" dist/packages/*.nupkg
166145
167- - name : Publish preview to NuGet
168- if : steps.release.outputs.changed == 'true'
169- env :
170- FLOWTHRU_NUGET_API_KEY : ${{ secrets.FLOWTHRU_NUGET_API_KEY }}
171- run : |
172- VERSION="${{ steps.release.outputs.version }}"
173- PRERELEASE_VERSION="${VERSION}-preview.${{ github.run_number }}"
174- rm dist/packages/*.nupkg
175- # Scope to src/ only — examples and tests are not NuGet artifacts.
176- # Directory.Build.props already restricts Version and PackageOutputPath
177- # to src/ projects; this find mirrors that boundary explicitly.
178- find src/ -name "*.csproj" -print0 | while IFS= read -r -d '' csproj; do
179- dotnet pack "$csproj" \
180- --no-build \
181- -c Release \
182- /p:Version="${PRERELEASE_VERSION}"
183- done
184- dotnet nuget push "dist/packages/*.nupkg" \
185- --api-key "${FLOWTHRU_NUGET_API_KEY}" \
186- --source https://api.nuget.org/v3/index.json \
187- --skip-duplicate
188146 # - name: Install Copilot CLI
189147 # if: steps.release.outputs.changed == 'true'
190148 # run: npm install -g @github/copilot
@@ -232,3 +190,46 @@ jobs:
232190 # } > /tmp/combined-notes.md
233191 # gh release edit "${VERSION}" --notes-file /tmp/combined-notes.md
234192 # fi
193+
194+ - name : Install Codecov CLI
195+ if : always()
196+ run : |
197+ curl https://keybase.io/codecovsecurity/pgp_keys.asc \
198+ | gpg --no-default-keyring --keyring trustedkeys.gpg --import
199+ curl -Os https://cli.codecov.io/latest/linux/codecov
200+ curl -Os https://cli.codecov.io/latest/linux/codecov.SHA256SUM
201+ curl -Os https://cli.codecov.io/latest/linux/codecov.SHA256SUM.sig
202+ gpg --no-default-keyring --keyring trustedkeys.gpg \
203+ --verify codecov.SHA256SUM.sig codecov.SHA256SUM
204+ shasum -a 256 -c codecov.SHA256SUM
205+ sudo chmod +x codecov
206+ sudo mv codecov /usr/local/bin/codecov
207+
208+ - name : Upload coverage to Codecov
209+ if : always()
210+ continue-on-error : true
211+ env :
212+ CODECOV_TOKEN : ${{ secrets.FLOWTHRU_CODECOV_TOKEN }}
213+ run : pnpm nx run tests:coverage:upload
214+
215+ - name : Publish preview to NuGet
216+ if : steps.release.outputs.changed == 'true'
217+ env :
218+ FLOWTHRU_NUGET_API_KEY : ${{ secrets.FLOWTHRU_NUGET_API_KEY }}
219+ run : |
220+ VERSION="${{ steps.release.outputs.version }}"
221+ PRERELEASE_VERSION="${VERSION}-preview.${{ github.run_number }}"
222+ rm dist/packages/*.nupkg
223+ # Scope to src/ only — examples and tests are not NuGet artifacts.
224+ # Directory.Build.props already restricts Version and PackageOutputPath
225+ # to src/ projects; this find mirrors that boundary explicitly.
226+ find src/ -name "*.csproj" -print0 | while IFS= read -r -d '' csproj; do
227+ dotnet pack "$csproj" \
228+ --no-build \
229+ -c Release \
230+ /p:Version="${PRERELEASE_VERSION}"
231+ done
232+ dotnet nuget push "dist/packages/*.nupkg" \
233+ --api-key "${FLOWTHRU_NUGET_API_KEY}" \
234+ --source https://api.nuget.org/v3/index.json \
235+ --skip-duplicate
0 commit comments