add ARD function for table_02 #502
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
--- | |
name: Docs π | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "inst/templates/**" | |
- "_pkgdown.y[a]ml" | |
- DESCRIPTION | |
- "**.md" | |
- "**.Rmd" | |
- "man/**" | |
- "LICENSE.*" | |
- NAMESPACE | |
- "_quarto.yml" | |
- "quarto/**" | |
- "index.qmd" | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
- reopened | |
- ready_for_review | |
branches: | |
- main | |
paths: | |
- "inst/templates/**" | |
- "_pkgdown.y[a]ml" | |
- DESCRIPTION | |
- "**.md" | |
- "**.Rmd" | |
- "man/**" | |
- "LICENSE.*" | |
- NAMESPACE | |
- "_quarto.yml" | |
- "quarto/**" | |
- "index.qmd" | |
workflow_dispatch: | |
jobs: | |
docs: | |
name: Quarto Docs π | |
runs-on: ubuntu-latest | |
container: | |
image: rocker/verse:4.4.0 | |
permissions: | |
contents: write | |
steps: | |
- name: Check out repository ποΈ | |
uses: actions/[email protected] | |
- name: Run Staged dependencies π¦ | |
uses: insightsengineering/staged-dependencies-action@v1 | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
enable-check: false | |
direction: upstream | |
- name: Install package π¦ | |
run: R CMD INSTALL . | |
- name: Render Quarto Project π | |
run: quarto render --output-dir _site | |
shell: bash | |
- name: Upload Docs β¬οΈ | |
if: github.event_name != 'push' | |
uses: actions/upload-artifact@v3 | |
with: | |
name: site | |
path: ./_site | |
- name: Publish Site πΊοΈ | |
if: github.event_name != 'pull_request' | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./_site | |
destination_dir: "." |