Skip to content

Commit

Permalink
Updated workflow (again)
Browse files Browse the repository at this point in the history
* Used proper syntax
  • Loading branch information
serkor1 committed Jan 6, 2025
1 parent 4ae86b3 commit 4a8d946
Showing 1 changed file with 37 additions and 35 deletions.
72 changes: 37 additions & 35 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,48 +3,50 @@ on:
push:
branches: [development, quarto-docs]

name: Quarto Publish
name: Build Docs

jobs:
build-deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes

- name: Install R
uses: r-lib/actions/setup-r@v2
with:
r-version: '4.2.0'

- name: Setup R dependencies
uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages:
any::MLmetrics
any::mlr3measures
any::yardstick
any::bench
any::devtools

- name: Install TinyTex and {SLmetrics}
if: runner.os == 'Linux'
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
run: |
quarto install tinytex
Rscript -e "devtools::install_github('serkor1/SLmetrics', ref = 'main', auth_token = Sys.getenv('GITHUB_PAT'))"
steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2

- name: Install R
uses: r-lib/actions/setup-r@v2
with:
r-version: 'release'

- name: Setup R dependencies
uses: r-lib/actions/setup-r-dependencies@v2
with:
packages:
local::.
any::MLmetrics
any::mlr3measures
any::yardstick
any::bench
any::tidyverse
any::tidymodels

- name: Render and Publish
uses: quarto-dev/quarto-actions/publish@v2
with:
target: gh-pages
path: docs/
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install TinyTex
if: runner.os == 'Linux'
run: |
quarto install tinytex
- name: Render and Publish
uses: quarto-dev/quarto-actions/publish@v2
with:
target: gh-pages
path: docs/

0 comments on commit 4a8d946

Please sign in to comment.