refactor #101
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: Deploy pagegen.phnd.net | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
jobs: | |
build_job: | |
name: Deploy site | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Graphviz | |
run: sudo apt install -y graphviz | |
- name: Install Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Checkout website source | |
id: checkout-master | |
uses: actions/checkout@v2 | |
- name: Install Pagegen | |
run: | | |
pip install pagegen | |
- name: Generate site | |
id: run-pagegen | |
env: | |
ACTIONS_PAGEGEN_FTP_HOST: ${{ secrets.ACTIONS_PAGEGEN_FTP_HOST }} | |
ACTIONS_PAGEGEN_FTP_USERNAME: ${{ secrets.ACTIONS_PAGEGEN_FTP_USERNAME }} | |
ACTIONS_PAGEGEN_FTP_PASSWORD: ${{ secrets.ACTIONS_PAGEGEN_FTP_PASSWORD }} | |
ACTIONS_PAGEGEN_FTP_TARGET_DIRECTORY: ${{ secrets.ACTIONS_PAGEGEN_FTP_TARGET_DIRECTORY }} | |
run: | | |
cd /home/runner/work/pagegen_site/pagegen_site | |
pagegen -g "prod" |