Skip to content

GSoC 2024 Final Blog Post - Modernize CC Resource Archive #2689

GSoC 2024 Final Blog Post - Modernize CC Resource Archive

GSoC 2024 Final Blog Post - Modernize CC Resource Archive #2689

name: Build and Deploy CC Open Source
on: [push, pull_request]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
# https://github.com/actions/setup-python
- name: setup python version
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install pipenv
run: |
pip install --upgrade pip
pip install pipenv
# https://github.com/actions/checkout
- uses: actions/checkout@v4
- name: Install dependencies
run: pipenv sync
- name: Build static site and use webpack
run: pipenv run lektor build -f webpack
- name: Deploy to production
if: github.ref == 'refs/heads/main'
run: |
pipenv run lektor deploy ghpages --username ${{ secrets.LEKTOR_DEPLOY_USERNAME }} --password ${{ secrets.LEKTOR_DEPLOY_PASSWORD }}