Skip to content

Commit

Permalink
Implement github action for publishing on push.
Browse files Browse the repository at this point in the history
  • Loading branch information
zackbatist committed Dec 18, 2024
1 parent a78e1db commit 48e0823
Show file tree
Hide file tree
Showing 34 changed files with 253 additions and 1,885 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
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

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

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

- name: Install R Dependencies
uses: r-lib/actions/setup-renv@v2
with:
cache-version: 1

- name: Render and Publish
uses: quarto-dev/quarto-actions/publish@v2
with:
target: gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9 changes: 6 additions & 3 deletions _quarto.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
project:
type: website

website:
title: "CITF-Postdoc"
site-url: "https://zackbatist.info/MEDHI/"
repo-url: "https://github.com/zackbatist/MEDHI"
site-url: "https://zackbatist.info/CITF-Postdoc/"
repo-url: "https://github.com/zackbatist/CITF-Postdoc"
repo-actions: [source]
bread-crumbs: true
page-navigation: false
Expand Down Expand Up @@ -57,3 +57,6 @@ format:
filters:
- include-files.lua
- quarto

execute:
freeze: auto
116 changes: 0 additions & 116 deletions _site/LICENSE

This file was deleted.

Loading

0 comments on commit 48e0823

Please sign in to comment.