Faq update and tutorial #798
Workflow file for this run
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
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
name: build-website | |
jobs: | |
build-website: | |
runs-on: ubuntu-latest | |
env: | |
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
RENV_CONFIG_AUTOLOADER_ENABLED: false | |
steps: | |
- uses: actions/checkout@v3 | |
- id: setup | |
uses: r-lib/actions/setup-r@v2 | |
- uses: quarto-dev/quarto-actions/setup@v2 | |
with: | |
version: pre-release | |
- uses: r-lib/actions/setup-r-dependencies@v2 | |
- id: install-mlr3website | |
name: Install mlr3website package | |
run: R CMD INSTALL . | |
- name: Render site | |
run: quarto render mlr-org/ | |
- name: Deploy netlify preview | |
if: ${{ github.event_name == 'pull_request' }} | |
uses: mlr-org/actions/quarto-netlify-preview@v1 | |
with: | |
netlify_auth_token: ${{ secrets.NETLIFY_AUTH_TOKEN }} | |
netlify_site_id: ${{ secrets.NETLIFY_SITE_ID }} | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
path: mlr-org/_site | |
netlify_url: mlr3website.netlify.app | |
- name: Deploy | |
if: ${{ github.event_name == 'push' }} | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
git-config-name: mlr-org | |
git-config-email: <> | |
commit-message: 'deploy website' | |
branch: gh-pages | |
folder: mlr-org/_site | |
single-commit: true |