nightly #53
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: nightly | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
env: | |
DOCFX_PREVIEW_BUILD: true | |
jobs: | |
publish-github-packages: | |
if: github.ref == 'refs/heads/main' | |
runs-on: ubuntu-latest | |
permissions: | |
packages: write | |
steps: | |
- uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: | | |
9.x | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- id: version | |
uses: paulhatch/semantic-version@v5.4.0 | |
with: | |
version_format: ${major}.${minor}.${patch}-preview.${increment} | |
- uses: ./.github/actions/build | |
- name: dotnet test | |
run: dotnet test -c Release -f net9.0 --no-build | |
- name: dotnet pack | |
run: dotnet pack -c Release /p:Version=${{ steps.version.outputs.version }} /p:ApiCompatGenerateSuppressionFile=true -o drop/nuget | |
- name: dotnet nuget push | |
run: | | |
dotnet nuget push drop/nuget/*.nupkg --api-key "${{ secrets.GITHUB_TOKEN }}" --skip-duplicate --source https://nuget.pkg.github.com/dotnet/index.json | |