dev-resources.site
for different kinds of informations.
How to Set up Netlify Deploys for Docfx using GitHub Actions
Published at
2/20/2024
Categories
docfx
dotnet
devops
githubactions
Author
Sean Killeen
We currently use docfx
to publish the NUnit docs, because it has a lovely capability of generating docs for our API reference in addition to all our articles.
However, one thing I often yearn for – that I get on this Jekyll blog and some others I work with – is the ability to have a live preview within a pull request of what the generated site will look like.
Because the source code for the API docs is in the nunit
repository, and the docs live in the docs
repo, it’ll be a little extra complicated.
Nevertheless: Let’s make it happen.
The Conceptual Approach
- We pull the NUnit DLL and create the docfx site
- We zip up the site
- We create a custom GitHub environment to be associated with our deployment environment
- We manually update the statuses of that deployment
- We deploy to Netlify
- We post the link as a comment in the PR
The Build Steps
Articles
12 articles in total
How to Run Docker-based .NET apps in JetBrains Rider Without “Fast Mode”
read article
Beautiful .NET Test Reports Using GitHub Actions
read article
Tips for Getting Un-Stuck on a Blogging Journey
read article
How to Write a Successful Job Description for a Developer Role
read article
Shrink Your Meeting “Feedback Loops”
read article
How to Set up Netlify Deploys for Docfx using GitHub Actions
currently reading
I Built a Tiny Tool for 1-on-1 Meeting Topics!
read article
Creating and Modeling “Sensible Happy Paths” for Software Team Success
read article
My Current Approach To Software Delivery
read article
Tips to Help Yourself Stand Out During a Tech Job Search
read article
How I Use Trello as a “Continuous Travel Packing List”
read article
How I Created an Automated (and Humane!) Hiring Process Using Jira
read article
Featured ones: