yeet #29
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
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
name: Quarto Publish | |
jobs: | |
build-deploy: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Set up Quarto | |
uses: quarto-dev/quarto-actions/setup@v2 | |
with: | |
version: pre-release | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.11 | |
- name: Cache Poetry install | |
uses: actions/cache@v3 | |
with: | |
path: ~/.local | |
key: poetry-1.4.2-0 | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
version: 1.4.2 | |
virtualenvs-create: true | |
virtualenvs-in-project: true | |
- name: Cache dependencies | |
id: cache-python-deps | |
uses: actions/cache@v3 | |
with: | |
path: .venv | |
key: pydeps-${{ hashFiles('**/poetry.lock') }} | |
- name: Install dependencies | |
shell: bash | |
if: steps.cache-python-deps.outputs.cache-hit != 'true' | |
run: poetry install --no-interaction --no-root | |
- name: Publish | |
shell: bash | |
run: | | |
git config --global user.email "victorouse@gmail.com" | |
git config --global user.name "Victor Roussekov" | |
source .venv/bin/activate | |
quarto publish gh-pages --no-browser | |