Skip to content

remove related

remove related #1161

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: actions/checkout@v3.1.0
# is a cached .venv any faster?
- name: Cache
uses: actions/cache@v3.0.11
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.10
uses: actions/setup-python@v4.3.0
with:
python-version: '3.10'
# cache: 'pip'
- name: install
run: |
venvnew() {
python3 -m venv .venv --prompt $(basename $PWD)
source .venv/bin/activate
pip install --no-deps -r requirements.txt
}
source .venv/bin/activate > /dev/null 2>&1 || venvnew
pip install --upgrade markata --pre
# - name: install markata
# run: pip install --no-deps -r requirements.txt
- name: run markata
run: |
source .venv/bin/activate
markata build --no-pretty
- name: create root
run: |
cp static/index.html markout/index.html
- name: GitHub Pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: crazy-max/ghaction-github-pages@v3.0.0
with:
target_branch: markout
build_dir: markout
jekyll: false