publish minio bucket entrypoint #1202
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 🌱 Deploy site | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- 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 --upgrade markata --pre | |
pip install -r requirements.txt | |
# - name: install markata | |
# run: pip install --no-deps -r requirements.txt | |
- name: run markata | |
run: | | |
markata build --no-pretty | |
- name: create root | |
run: | | |
cp static/index.html markout/index.html | |
- 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 |