Skip to content

Merge pull request #131 from bookwyrm-social/dependabot/pip/black-24.3.0 #117

Merge pull request #131 from bookwyrm-social/dependabot/pip/black-24.3.0

Merge pull request #131 from bookwyrm-social/dependabot/pip/black-24.3.0 #117

Workflow file for this run

name: Compile and Deploy
on:
push:
branches:
- main
jobs:
compile:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install Dev Dependencies
run: |
sudo apt-get install gettext
- name: Install Python Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Process translations
run: |
./bw-dev messages:update
- name: Compile site
run: |
python generate.py
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_user_name: BookWyrm Bot
commit_message: build site
commit_author: BookWyrm Bot <[email protected]>
- name: Deploy to server
id: deploy
uses: Pendect/[email protected]
env:
DEPLOY_KEY: ${{secrets.DEPLOY_KEY}}
with:
flags: '-avzr --delete'
options: ''
ssh_options: ''
src: 'site/'
dest: '[email protected]:/var/www/docs-bookwyrm/html'