-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto-publish code docs on github (#1722)
Co-authored-by: Bess Sadler <bess@users.noreply.github.com> Co-authored-by: Robert-Anthony Lee-Faison <leefaisonr@users.noreply.github.com> Co-authored-by: Bess Sadler <bess.sadler@princeton.edu>
- Loading branch information
1 parent
79ef11e
commit 08381e8
Showing
4 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
--- | ||
name: Deploy API docs to GitHub Pages | ||
on: | ||
push: | ||
branches: ['main'] | ||
# paths: | ||
# - '.github/workflows/pages.yml' | ||
# - '.yardopts' | ||
# - 'lib/**' | ||
# - 'Gemfile' | ||
# - '**.txt' | ||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
# Allow one concurrent deployment | ||
concurrency: | ||
group: 'pages' | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
deploy_yard: | ||
# the deploy environment (not to be confused with env) | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
name: Build and deploy YARD | ||
steps: | ||
- uses: kachick/deploy-yard-to-pages@v1.3.0 | ||
id: deployment | ||
with: | ||
# default `doc` as default of `.yardopts` | ||
# output-dir: 'doc' | ||
# default version is 3.2 | ||
ruby-version: '3.2' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,3 +55,4 @@ node_modules | |
# https://vitejs.dev/guide/env-and-mode.html#env-files | ||
*.local | ||
test_results/** | ||
.yardoc/ |
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
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