chore(deps): update xunit-dotnet monorepo (#236) #131
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run Release Release | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
release-package: | |
runs-on: ubuntu-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@v4 | |
if: ${{ steps.release.outputs.releases_created }} | |
with: | |
fetch-depth: 0 | |
- name: Setup .NET SDK | |
if: ${{ steps.release.outputs.releases_created }} | |
uses: actions/setup-dotnet@v4 | |
env: | |
NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
dotnet-version: | | |
6.0.x | |
7.0.x | |
source-url: https://nuget.pkg.github.com/open-feature/index.json | |
- name: Install dependencies | |
if: ${{ steps.release.outputs.releases_created }} | |
run: dotnet restore | |
- name: Pack | |
if: ${{ steps.release.outputs.releases_created }} | |
run: dotnet pack --no-restore | |
- name: Publish to Nuget | |
if: ${{ steps.release.outputs.releases_created }} | |
run: dotnet nuget push "src/**/*.nupkg" --api-key "${{ secrets.NUGET_TOKEN }}" --source https://api.nuget.org/v3/index.json |