Skip to content

migrate to justfile #70

migrate to justfile

migrate to justfile #70

Workflow file for this run

name: deploy
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
concurrency:
group: deploy-${{ github.head_ref }}
cancel-in-progress: true
permissions:
contents: read
id-token: write
pull-requests: write
checks: write
jobs:
build:
strategy:
matrix:
python-version: [3.11]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: extractions/setup-just@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v3
id: cached-python-env
with:
path: ${{ env.pythonLocation }}
key: >
python
${{ runner.os }}
python-${{ matrix.python-version }}
${{ hashFiles('requirements.txt') }}
- name: Install dependencies
if: steps.cached-python-env.outputs.cache-hit != 'true'
run: |
pip install -r requirements.txt
- name: Print Python info
run: |
which python
python --version
which pip
pip --version
pip freeze
# ------------------------------------------------------------------------
- name: Build docs
run: |
just build
- name: Cache website
id: cache-build
uses: actions/cache@v3
with:
path: dist
key: >
website
${{ github.run_id }}
${{ github.run_attempt }}
cf-pages:
uses: ./.github/workflows/deploy-cf-pages.yml
needs: [build]
secrets: inherit
post-deploy:
uses: ./.github/workflows/deploy-post.yml
needs: [cf-pages]
secrets: inherit