Skip to content

try this

try this #1469

Workflow file for this run

name: 🌱 Deploy site
on:
workflow_dispatch:
push:
branches:
- main
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: szenius/[email protected]
with:
timezoneLinux: "America/Chicago"
timezoneMacos: "America/Chicago"
timezoneWindows: "America/Chicago"
- uses: actions/[email protected]
# is a cached .venv any faster?
- name: Cache
uses: actions/[email protected]
with:
path: |
./.markata.cache
./markout
./.venv
key: ${{ runner.os }}-${{ hashfiles('markata.toml') }}-markata-${{ github.sha }}
restore-keys: |
${{ runner.os }}-${{ hashfiles('markata.toml') }}-markata-${{ github.sha }}
${{ runner.os }}-${{ hashfiles('markata.toml') }}-markata-
${{ runner.os }}-${{ hashfiles('markata.toml') }}-
- name: Set up Python 3.11
uses: actions/[email protected]
with:
python-version: "3.11"
- name: install
run: |
pip install -r requirements.txt
- name: run markata
run: |
markata build --no-pretty
- name: create root
run: |
cp static/index.html markout/index.html
- name: rm markata.json
run: |
# too big for cloudflare pages
rm markout/markata.json
- name: Use Node v20
uses: actions/[email protected]
with:
node-version: 20
- name: Create Pagefind
run: npx pagefind --site markout
- name: GitHub Pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: crazy-max/[email protected]
with:
target_branch: markout
build_dir: markout
jekyll: false