Skip to content

Commit eba8848

Browse files
chore: Sync release.yml with ci.yml following open-feature#173 (open-feature#195)
Signed-off-by: Austin Drenski <[email protected]>
1 parent 45e2c86 commit eba8848

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

.github/workflows/release.yml

+3-12
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
release-package:
10-
runs-on: windows-latest
10+
runs-on: ubuntu-latest
1111

1212
steps:
1313
- uses: google-github-actions/release-please-action@v3
@@ -34,19 +34,10 @@ jobs:
3434
if: ${{ steps.release.outputs.releases_created }}
3535
run: dotnet restore
3636

37-
- name: Build
38-
if: ${{ steps.release.outputs.releases_created }}
39-
run: |
40-
dotnet build --configuration Release --no-restore -p:Deterministic=true
41-
4237
- name: Pack
4338
if: ${{ steps.release.outputs.releases_created }}
44-
run: |
45-
dotnet pack OpenFeature.proj --configuration Release --no-build
39+
run: dotnet pack --no-restore
4640

4741
- name: Publish to Nuget
4842
if: ${{ steps.release.outputs.releases_created }}
49-
run: |
50-
dotnet nuget push src/OpenFeature/bin/Release/OpenFeature.${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}.${{ steps.release.outputs.patch }}.nupkg `
51-
--api-key ${{secrets.NUGET_TOKEN}} `
52-
--source https://api.nuget.org/v3/index.json
43+
run: dotnet nuget push "src/**/*.nupkg" --api-key "${{ secrets.NUGET_TOKEN }}" --source https://api.nuget.org/v3/index.json

0 commit comments

Comments
 (0)