Skip to content

Commit

Permalink
Merge pull request #36 from joeroe/master
Browse files Browse the repository at this point in the history
Add make.R to hugo workflow
  • Loading branch information
zackbatist authored Dec 13, 2023
2 parents bd164d4 + a3e2a58 commit 09a6975
Show file tree
Hide file tree
Showing 582 changed files with 1,713 additions and 8,790 deletions.
1 change: 1 addition & 0 deletions .Rprofile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
source("renv/activate.R")
20 changes: 13 additions & 7 deletions .github/workflows/hugo.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Sample workflow for building and deploying a Hugo site to GitHub Pages
name: Deploy Hugo site to Pages
name: Generate and deploy Hugo site to Pages

on:
# Runs on pushes targeting the default branch
push:
branches:
- main
- master

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down Expand Up @@ -34,17 +34,23 @@ jobs:
env:
HUGO_VERSION: 0.121.0
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Set up R
uses: r-lib/actions/setup-r@v2
- name: Set up renv
uses: r-lib/actions/setup-renv@v2
- name: Make Hugo source files
run: Rscript -e 'source("make.R")'
- name: Install Hugo CLI
run: |
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
- name: Install Dart Sass
run: sudo snap install dart-sass
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Setup Pages
id: pages
uses: actions/configure-pages@v4
Expand Down
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ Thumbs.db
.RData
.hugo_build.lock

# Hugo content files (generated from CSV in make.R)
/content/post/*
!/content/post/.keep

# Generated files by hugo
/public/
/resources/_gen/
Expand All @@ -55,4 +59,4 @@ hugo.darwin
hugo.linux

# Temporary lock file while building
/.hugo_build.lock
/.hugo_build.lock
2 changes: 1 addition & 1 deletion R/internet-archive_links.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ rm(list=ls())
#
# # Delete package tarball
# unlink(pkgFile)
# library(internetarchive)

library(internetarchive)
library(reshape)
library("dplyr", warn.conflicts = FALSE)

Expand Down
Empty file added content/post/.keep
Empty file.
15 changes: 0 additions & 15 deletions content/post/14c-power-sensitivity.md

This file was deleted.

15 changes: 0 additions & 15 deletions content/post/3d-ceramics.md

This file was deleted.

15 changes: 0 additions & 15 deletions content/post/3d-edgeangle.md

This file was deleted.

15 changes: 0 additions & 15 deletions content/post/3d-libraries-of-ships.md

This file was deleted.

16 changes: 0 additions & 16 deletions content/post/3d-organ.md

This file was deleted.

15 changes: 0 additions & 15 deletions content/post/3d-spatial-ripley-analyses.md

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

15 changes: 0 additions & 15 deletions content/post/abc-of-archaeobotanical-open-science.md

This file was deleted.

15 changes: 0 additions & 15 deletions content/post/abm-tutorials.md

This file was deleted.

15 changes: 0 additions & 15 deletions content/post/abma.md

This file was deleted.

15 changes: 0 additions & 15 deletions content/post/aca-data-collection.md

This file was deleted.

16 changes: 0 additions & 16 deletions content/post/admur.md

This file was deleted.

15 changes: 0 additions & 15 deletions content/post/adrac.md

This file was deleted.

15 changes: 0 additions & 15 deletions content/post/adrsm.md

This file was deleted.

15 changes: 0 additions & 15 deletions content/post/aida.md

This file was deleted.

17 changes: 0 additions & 17 deletions content/post/aion.md

This file was deleted.

Loading

0 comments on commit 09a6975

Please sign in to comment.