Change map #356
Workflow file for this run
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: Build & Deploy to GH Pages | |
on: [push, pull_request] | |
jobs: | |
build: | |
name: Build & Deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v1 | |
with: | |
python-version: "3.10" | |
- name: Set up Node.js 16 | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 16.x | |
- name: Install python dependencies | |
run: | | |
pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Install JS dependencies | |
run: npm install | |
- name: Build | |
run: | | |
npm run build | |
lektor build | |
- name: Deploy | |
if: github.event_name == 'push' && github.ref == 'refs/heads/master' | |
run: lektor deploy ci --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} |