Skip to content

docs: Update README.md (#147) #68

docs: Update README.md (#147)

docs: Update README.md (#147) #68

Workflow file for this run

name: Run Release Release
on:
push:
branches:
- main
jobs:
release-package:
runs-on: windows-latest
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
command: manifest
token: ${{secrets.GITHUB_TOKEN}}
default-branch: main
- uses: actions/checkout@v3
if: ${{ steps.release.outputs.releases_created }}
with:
fetch-depth: 0
- name: Setup .NET Core 6.0.x, 7.0.x
if: ${{ steps.release.outputs.releases_created }}
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.0.x
7.0.x
- name: Install dependencies
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 -p:PackageID=OpenFeature
- 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