Implement initial GitHub Action for deploying website #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: wxPyWeb Publish | |
on: | |
push: | |
branches: ['master'] | |
workflow_dispatch: | |
jobs: | |
publish-website: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.9' | |
cache: 'pip' | |
- name: Install dependencies | |
run: | | |
pip install -r requirements.txt | |
- name: Build website | |
run: | | |
nikola build | |
- name: Publish website | |
run: | | |
nikola deploy |