Skip to content

Commit d63a15e

Browse files
committed
update quarto template and gh actions
1 parent bd734cd commit d63a15e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+9571
-16320
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Deploy Latest
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
jobs:
10+
deploy:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Deploy
15+
uses: cambiotraining/crit-gh-actions/course-deploy@main
16+
with:
17+
pre_render: "echo 'Optional pre-render commands'"
18+
post_render: "echo 'Optional post-render commands'"
19+
enable_archive: "false"
20+
env:
21+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/publish_site.yml

Lines changed: 0 additions & 47 deletions
This file was deleted.

.github/workflows/tag_release.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Tag Release
2+
3+
on:
4+
push:
5+
tags:
6+
- '20[2-9][0-9].[0-1][0-9].[0-3][0-9]'
7+
8+
jobs:
9+
archive:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Archive
13+
uses: cambiotraining/crit-gh-actions/course-archive@main
14+
with:
15+
pre_render: "echo 'Optional pre-render commands'"
16+
post_render: "echo 'Optional post-render commands'"
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
20+
deploy:
21+
runs-on: ubuntu-latest
22+
needs: archive
23+
steps:
24+
- name: Deploy
25+
uses: cambiotraining/crit-gh-actions/course-deploy@main
26+
with:
27+
pre_render: "echo 'Optional pre-render commands'"
28+
post_render: "echo 'Optional post-render commands'"
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Scheduled Quarto Extensions Update
2+
3+
on:
4+
schedule:
5+
- cron: '0 6 1 * *' # 06:00 UTC on the 1st of each month
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
12+
jobs:
13+
update-extensions:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
19+
- name: Update extensions
20+
uses: cambiotraining/crit-gh-actions/course-extensions-update@main
21+
22+
- name: Create or update PR
23+
uses: peter-evans/create-pull-request@v4
24+
with:
25+
token: ${{ secrets.GITHUB_TOKEN }}
26+
commit-message: "chore: automated update to Quarto extensions"
27+
branch: "auto/quarto-ext-update"
28+
title: "chore: automated update to Quarto extensions"
29+
body: |
30+
Automated update of Quarto extensions to their latest versions.
31+
labels: "chore,extensions-update"

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,5 @@ _site
2424

2525
# Mac
2626
.DS_Store
27+
28+
**/*.quarto_ipynb
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
title: Callout Exercise
2+
description: A shortcode and filter to create callout exercises with star ratings.
3+
author: Cambridge Research Informatics Training
4+
version: 1.0.0
5+
contributes:
6+
shortcodes:
7+
- star_levels.lua
8+
filters:
9+
- callout_exercise.lua

_extensions/cambiotraining/courseformat/callout_exercise.lua renamed to _extensions/cambiotraining/callout-exercise/callout_exercise.lua

File renamed without changes.

_extensions/cambiotraining/courseformat/star_levels.lua renamed to _extensions/cambiotraining/callout-exercise/star_levels.lua

File renamed without changes.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
title: Citation CFF Parser
2+
description: A shortcode to create author lists and citations from CFF files.
3+
author: Cambridge Research Informatics Training
4+
version: 1.0.0
5+
contributes:
6+
shortcodes:
7+
- citation_cff.lua

_extensions/cambiotraining/courseformat/citation_cff.lua renamed to _extensions/cambiotraining/citation-cff-parser/citation_cff.lua

File renamed without changes.

0 commit comments

Comments
 (0)