Skip to content

Commit df1e352

Browse files
authored
feat: publish nightly pre-release packages (#9788)
1 parent 99c6009 commit df1e352

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

.github/workflows/nightly.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: nightly
2+
on:
3+
schedule:
4+
- cron: '0 0 * * *'
5+
6+
jobs:
7+
publish-github-packages:
8+
if: github.ref == 'refs/heads/main'
9+
runs-on: ubuntu-latest
10+
permissions:
11+
packages: write
12+
steps:
13+
- uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
17+
- id: version
18+
uses: paulhatch/semantic-version@v5.3.0
19+
with:
20+
version_format: ${major}.${minor}.${patch}-preview.${increment}
21+
22+
- uses: ./.github/actions/build
23+
24+
- name: dotnet pack
25+
run: dotnet pack -c Release /p:Version=${{ steps.version.outputs.version }} -o drop/nuget
26+
27+
- name: dotnet nuget push
28+
run: |
29+
dotnet nuget push drop/nuget/*.nupkg --api-key "${{ secrets.GITHUB_TOKEN }}" --skip-duplicate --source https://nuget.pkg.github.com/dotnet/index.json
30+

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ Docfx is planned to continue as a community-driven project. We hope to produce f
3636
3737
For more information, refer to [Getting Started](http://dotnet.github.io/docfx/tutorial/docfx_getting_started.html).
3838
39+
> [!TIP]
40+
> Docfx publishes nightly builds to [GitHub Packages](https://github.com/orgs/dotnet/packages), this allows you to stay up-to-date with the latest developments in Docfx.
41+
3942
## Contributing
4043
4144
Use [Discussions](https://github.com/dotnet/docfx/discussions) for questions and general discussions.

0 commit comments

Comments
 (0)