Skip to content

Commit 223aa10

Browse files
authored
ci: fix version reference in validate template job
1 parent cab360a commit 223aa10

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -108,26 +108,7 @@ jobs:
108108
- name: Validate package
109109
shell: pwsh
110110
run: meziantou.validate-nuget-package (Get-ChildItem "${{ env.NUGET_DIRECTORY }}/*.nupkg") --excluded-rules IconMustBeSet
111-
112-
release-preview:
113-
if: github.event_name == 'workflow_dispatch' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/v2'
114-
runs-on: ubuntu-latest
115-
needs: [ validate-nuget, run-test, validate_template, validate-docs ]
116-
steps:
117-
- uses: actions/download-artifact@v3
118-
with:
119-
name: ${{ env.NUGET_PACKAGES_ARTIFACT }}
120-
path: ${{ env.NUGET_DIRECTORY }}
121-
122-
- name: Setup .NET Core
123-
uses: actions/setup-dotnet@v4
124-
125-
- name: 🛠️ Upload library to GitHub Package Repository
126-
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
127-
128-
- name: 🛠️ Upload library to NuGet.org repository
129-
run: dotnet nuget push ${{ env.NUGET_DIRECTORY }}/*.nupkg -k ${{ secrets.NUGET_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate --no-symbols
130-
111+
131112
run-test:
132113
strategy:
133114
fail-fast: false
@@ -187,7 +168,7 @@ jobs:
187168

188169
- name: ✳ Install bUnit template
189170
run: |
190-
dotnet new install bunit.template::${NBGV_NuGetPackageVersion} --nuget-source ${{ env.NUGET_DIRECTORY }}
171+
dotnet new install bunit.template::${NBGV_SimpleVersion}${NBGV_PrereleaseVersion} --nuget-source ${{ env.NUGET_DIRECTORY }}
191172
192173
- name: ✔ Verify xUnit template
193174
run: |
@@ -261,3 +242,22 @@ jobs:
261242
uses: actions/checkout@v4
262243
- name: 'Dependency Review'
263244
uses: actions/dependency-review-action@v3
245+
246+
release-preview:
247+
if: github.event_name == 'workflow_dispatch' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/v2'
248+
runs-on: ubuntu-latest
249+
needs: [ validate-nuget, run-test, validate_template, validate-docs ]
250+
steps:
251+
- uses: actions/download-artifact@v3
252+
with:
253+
name: ${{ env.NUGET_PACKAGES_ARTIFACT }}
254+
path: ${{ env.NUGET_DIRECTORY }}
255+
256+
- name: Setup .NET Core
257+
uses: actions/setup-dotnet@v4
258+
259+
- name: 🛠️ Upload library to GitHub Package Repository
260+
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
261+
262+
- name: 🛠️ Upload library to NuGet.org repository
263+
run: dotnet nuget push ${{ env.NUGET_DIRECTORY }}/*.nupkg -k ${{ secrets.NUGET_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate --no-symbols

0 commit comments

Comments
 (0)