Skip to content

mobile

mobile #94

Workflow file for this run

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
tinytex: true
- name: Setup R
uses: r-lib/actions/setup-r@v2
- name: Install R dependencies
uses: r-lib/actions/setup-renv@v2
with:
cache-version: rdeps-${{ hashFiles('**/renv.lock') }}
- 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