-
Notifications
You must be signed in to change notification settings - Fork 9
Add pkgdown configuration and update GitHub Actions for deployment #224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,3 +26,6 @@ model_glm_dirichlet_multinomial_imputation.rds | |
^Meta$ | ||
sccomp_draws_files | ||
|
||
^_pkgdown\.yml$ | ||
^docs$ | ||
^pkgdown$ |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -125,26 +125,15 @@ jobs: | |
- name: Build pkgdown site | ||
shell: Rscript {0} | ||
run: | | ||
pkgdown::build_site() | ||
pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE) | ||
env: | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
- name: Deploy to GitHub pages 🚀 | ||
if: github.event_name != 'pull_request' || github.head_ref == 'fix-github-pages' | ||
uses: JamesIves/github-pages-deploy-action@v4.5.0 | ||
with: | ||
path: ./docs | ||
|
||
# Deploy job | ||
deploy: | ||
needs: build | ||
permissions: | ||
pages: write | ||
id-token: write | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 | ||
clean: false | ||
branch: gh-pages | ||
folder: docs | ||
Comment on lines
+133
to
+138
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The hardcoded branch name 'fix-github-pages' in the conditional makes the workflow fragile. Consider using a more generic approach or removing this specific branch exception to avoid maintenance issues when branch names change. Copilot uses AI. Check for mistakes. Positive FeedbackNegative Feedback |
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,3 +45,4 @@ Rplot.pdf | |
/Meta/ | ||
sccomp_draws_files | ||
.DS_Store | ||
docs |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
url: https://mangiolalaboratory.github.io/sccomp/ | ||
template: | ||
bootstrap: 5 | ||
|
Uh oh!
There was an error while loading. Please reload this page.