Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to centrally-managed actions #84

Merged
merged 1 commit into from
Aug 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions .github/workflows/dotnet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,12 @@ jobs:

all-required-checks-complete:
needs: [check-format, build, expected-pack, analyze-code, github-tag-and-release-dry-run]
if: ${{ always() }}
runs-on: ubuntu-latest
steps:
- run: echo "All required checks complete."
- uses: G-Research/common-actions/check-required-lite@main
with:
needs-context: ${{ toJSON(needs) }}

# This does not gate release, because external dependencies may be flaky.
markdown-link-check:
Expand All @@ -146,8 +149,13 @@ jobs:
uses: actions/download-artifact@v4
with:
name: nuget-package
- name: Publish to NuGet
run: dotnet nuget push "ApiSurface.*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
path: downloaded
- name: Publish NuGet package
uses: G-Research/common-actions/publish-nuget@main
with:
package-name: ApiSurface
nuget-key: ${{ secrets.NUGET_API_KEY }}
nupkg-dir: downloaded

github-tag-and-release:
runs-on: ubuntu-latest
Expand Down