Bump version to 47.3.0-beta.1 #3524
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: CI | |
on: | |
workflow_dispatch: {} | |
push: | |
branches: | |
- master | |
- beta | |
- sdk-release/** | |
- feature/** | |
tags: | |
- v[0-9]+.[0-9]+.[0-9]+* | |
pull_request: | |
branches: | |
- master | |
- beta | |
- sdk-release/** | |
- feature/** | |
jobs: | |
build: | |
name: Build and test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: extractions/setup-just@v2 | |
- uses: actions/checkout@master | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: | | |
2.1.x | |
3.1.x | |
5.0.x | |
6.0.x | |
7.0.404 | |
8.0.x | |
- name: Install tools | |
run: | | |
dotnet tool restore | |
- name: Build Release | |
run: dotnet build src -c Release /p:ContinuousIntegrationBuild=true | |
- uses: stripe/openapi/actions/stripe-mock@master | |
- name: Run test suite | |
run: just ci-test | |
- name: Pack | |
run: dotnet pack src/Stripe.net -c Release --no-build --output nuget | |
- name: "Upload Artifact" | |
uses: actions/upload-artifact@v4 | |
with: | |
name: nuget | |
path: nuget/ | |
compat: | |
name: Compat | |
if: github.event_name == 'pull_request' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 8.0.x | |
- name: Run backcompat check | |
run: dotnet pack src/Stripe.net -p:RunBaselineCheck=true | |
publish: | |
name: Publish | |
if: (((github.event_name == 'push') || (github.event_name == 'workflow_dispatch')) && startsWith(github.ref, 'refs/tags/v') && endsWith(github.actor, '-stripe')) | |
needs: [build] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download all workflow run artifacts | |
uses: actions/download-artifact@v4 | |
with: | |
name: nuget | |
path: nuget | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 8.0.x | |
- name: Publish NuGet packages to NuGet | |
run: dotnet nuget push nuget/*.nupkg --api-key ${{ secrets.NUGET_KEY }} --source "nuget.org" | |
- uses: stripe/openapi/actions/notify-release@master | |
if: always() | |
with: | |
bot_token: ${{ secrets.SLACK_BOT_TOKEN }} |