Skip to content

[gha] mkdir dist

[gha] mkdir dist #2

Workflow file for this run

name: Render and deploy website to GitHub Pages
# Keep up to date with main, not a branch.
on:
push:
branches: [main]
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
# Jobs
jobs:
# Generate the docs.
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Render website
run: |
mkdir dist
python process/process.py -s website.yaml
- name: Deploy to GitHub Pages
uses: actions/upload-pages-artifact@v1
with:
path: './dist/'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1