Skip to content

WIP Add bootstrap to page (instead cdn) and add more content #38

WIP Add bootstrap to page (instead cdn) and add more content

WIP Add bootstrap to page (instead cdn) and add more content #38

name: Build and deploy website

Check failure on line 1 in .github/workflows/build-pages-and-deploy.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build-pages-and-deploy.yml

Invalid workflow file

invalid `cron` attribute "0 22 * * 7"
run-name: ${{ github.repository }} is built and deployed
on:
push:
branches:
- main
schedule:
- cron: "0 22 * * 7"
jobs:
Jekyll:
name: Build Jekyll site and deploy it to the web server
runs-on: ubuntu-latest
steps:
- run: echo "Branch is ${{ github.ref }} in repository ${{ github.repository }} is built and deployed."
- name: Check out repository code
uses: actions/checkout@v3
- name: Setup Python environment
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install Python packages
run: |
python -m pip install --upgrade pip
pip install jinja2
- name: Write courses pages
run: |
cd ./scripts/; ./write-courses.py
- name: Build website with Jekyll
uses: jerryjvl/jekyll-build-action@v1
- name: Copy the files to the server using rsync
uses: burnett01/[email protected]
with:
switches: -avxP --delete --exclude="/invoice" --exclude="/invoice-usermeeting" --exclude="/qgisuser"
path: _site/*
remote_path: /var/www/sites/qgisch
remote_host: ${{ secrets.HOST }}
remote_user: ${{ secrets.USERNAME }}
remote_key: ${{ secrets.SSH_PRIVATE_KEY }}