Skip to content

Commit

Permalink
20240515 - update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Petersen committed May 13, 2024
1 parent bfa5e09 commit d0d2cd0
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
on:
workflow_dispatch:
push:
branches: main

name: Quarto Publish

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

- name: Setup R
uses: r-lib/actions/setup-r@v2 # update

- name: Session info
run: Rscript -e 'sessionInfo()'

- name: Setup pandoc
uses: r-lib/actions/setup-pandoc@v2 # update

- name: Install libcurl on Linux
if: runner.os == 'Linux'
run: sudo apt-get update -y && sudo apt-get install -y libcurl4-openssl-dev

- name: Install package dependencies
uses: r-lib/actions/setup-r-dependencies@v2 # update

#- name: Install remote packages
# run: |
# Rscript -e 'remotes::install_github("DevPsyLab/petersenlab")'

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

- name: Render Quarto Project
uses: quarto-dev/quarto-actions/render@v2 # update

- name: Render and Publish
uses: quarto-dev/quarto-actions/publish@v2 # update
with:
target: gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10 changes: 10 additions & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Package: placeholder
Title: book
Version: 1.0.7
Imports:
dplyr,
ggplot2,
tidyverse,
petersenlab
Remotes:
DevPsyLab/petersenlab

0 comments on commit d0d2cd0

Please sign in to comment.