Skip to content

Commit dc146e4

Browse files
committed
ci: change verification to ci, include release preview
1 parent 8860554 commit dc146e4

2 files changed

Lines changed: 31 additions & 68 deletions

File tree

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: verification
1+
name: ci
22

33
on:
44
push:
@@ -226,3 +226,33 @@ jobs:
226226
- name: 📄 Build docs
227227
working-directory: ./docs/site
228228
run: dotnet run Site.csproj
229+
230+
dependency-review:
231+
runs-on: ubuntu-latest
232+
permissions:
233+
contents: read
234+
if: github.event_name == 'pull_request' && github.repository_owner == 'bunit-dev'
235+
steps:
236+
- name: 'Checkout Repository'
237+
uses: actions/checkout@v3
238+
- name: 'Dependency Review'
239+
uses: actions/dependency-review-action@v3
240+
241+
release-preview:
242+
if: github.event_name == 'workflow_dispatch' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/v2'
243+
runs-on: ubuntu-latest
244+
needs: [ validate-nuget, run-test, validate_template, validate-docs ]
245+
steps:
246+
- uses: actions/download-artifact@v3
247+
with:
248+
name: ${{ env.NUGET_PACKAGES_ARTIFACT }}
249+
path: ${{ env.NUGET_DIRECTORY }}
250+
251+
- name: Setup .NET Core
252+
uses: actions/setup-dotnet@v3
253+
254+
- name: 🛠️ Upload library to GitHub Package Repository
255+
run: dotnet nuget push ${{ env.NUGET_DIRECTORY }}/*.nupkg -k ${{ secrets.GITHUB_TOKEN }} -s https://nuget.pkg.github.com/bunit-dev/index.json --skip-duplicate --no-symbols
256+
257+
- name: 🛠️ Upload library to NuGet.org repository
258+
run: dotnet nuget push ${{ env.NUGET_DIRECTORY }}/*.nupkg -k ${{ secrets.NUGET_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate --no-symbols

.github/workflows/release-preview.yml

Lines changed: 0 additions & 67 deletions
This file was deleted.

0 commit comments

Comments
 (0)