Skip to content

Update translations to 66c0663. #9

Update translations to 66c0663.

Update translations to 66c0663. #9

Workflow file for this run

name: Publish
on:
push:
branches:
lektor
# Cancel active CI runs for a PR before starting another run
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash # https://github.com/beeware/briefcase/pull/912
env:
FORCE_COLOR: "1"
jobs:
publish:
name: Publish site
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 1
- name: Configure git
run: |
git config --local user.email "$(git log --pretty='%ae' -1)"
git config --local user.name "brutusthebee[bot]"
- name: Set up Python
uses: actions/[email protected]
with:
python-version: "3.12"
- name: Install dependencies
run: |
pip install --upgrade pip
pip install --upgrade setuptools wheel
pip install -r requirements.txt
lektor plugins reinstall
sudo apt update -y
sudo apt install -y --no-install-recommends gettext
- name: Build site
run: |
lektor build --no-prune
- name: Translation update required?
id: updated
run: |
if [[ $(git status --porcelain) ]]; then
echo "updated=true" >> ${GITHUB_OUTPUT}
else
echo "updated=false" >> ${GITHUB_OUTPUT}
fi
- name: Commit updated translations
if: steps.updated.outputs.updated == 'true'
env:
GITHUB_TOKEN: ${{ github.token }}
run: |
# Commit the updated PO files.
git add i18n
git commit -m "Update translations to $(git rev-parse --short HEAD)."
git push origin
- name: Publish site
env:
LEKTOR_DEPLOY_USERNAME: brutusthebee
LEKTOR_DEPLOY_PASSWORD: ${{ secrets.LEKTOR_DEPLOY_PASSWORD }}
run: |
lektor deploy ghpages-https
# # This step is only needed if you're trying to diagnose test failures that
# # only occur in CI, and can't be reproduced locally. When it runs, it will
# # open an SSH server (URL reported in the logs) so you can ssh into the CI
# # machine.
# - name: Setup tmate session
# uses: mxschmitt/action-tmate@v3
# if: failure()