Skip to content

Commit

Permalink
chore: Sync release.yml with ci.yml following #173 (#195)
Browse files Browse the repository at this point in the history
Signed-off-by: Austin Drenski <austin@austindrenski.io>
  • Loading branch information
austindrenski committed Jan 23, 2024
1 parent 45e2c86 commit eba8848
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions .github/workflows/release.yml
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
release-package:
runs-on: windows-latest
runs-on: ubuntu-latest

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

- name: Build
if: ${{ steps.release.outputs.releases_created }}
run: |
dotnet build --configuration Release --no-restore -p:Deterministic=true
- name: Pack
if: ${{ steps.release.outputs.releases_created }}
run: |
dotnet pack OpenFeature.proj --configuration Release --no-build
run: dotnet pack --no-restore

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

0 comments on commit eba8848

Please sign in to comment.