Skip to content

add outreachy 2024 project, remove GSoC 2024 projects #2701

add outreachy 2024 project, remove GSoC 2024 projects

add outreachy 2024 project, remove GSoC 2024 projects #2701

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 }}