Skip to content

undo

undo #129

Workflow file for this run

name: Build & Deploy
# Controls when the action will run.
on:
push:
branches: [main]
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Pages Branch
uses: actions/checkout@v4
with:
ref: gh-pages
submodules: recursive
- name: Delete old build files
run: rm -rf docs content
- name: Clone Source Files
uses: actions/checkout@v4
with:
ref: main
path: ./content
- name: Setup Content
run: |
cd ./content &&
rm -f starter.tex &&
mv README.md _index.md &&
sed -i '{1d;8d;9s@.*@# Home@}' _index.md
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: 'latest'
extended: true
- uses: actions/cache@v4
with:
path: /tmp/hugo_cache
key: ${{ runner.os }}-hugomod-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-hugomod-
- name: Build Pages
run: hugo --minify
- name: Build Presentations
uses: docker://marpteam/marp-cli:v1.7.0
with:
args: content/CSCC01/C01_CI-CD.marp/index.marp.md -o docs/test.pdf
env:
MARP_USER: root:root
- name: Cleanup
run: rm -rf content
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: .