forked from dotnet/docfx
-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (32 loc) · 1.04 KB
/
nightly.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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/[email protected]
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