Skip to content

Commit

Permalink
Create push_terms_to_poeditor.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Hicks committed Aug 5, 2021
1 parent 1a4d214 commit 456853a
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/push_terms_to_poeditor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: "Export terms to POEditor"
on:
push:
branches: [ main ]

jobs:
docs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v1
- name: Build sphinx terms
uses: ammaraskar/sphinx-action@35082eb35b69713fe335801c4d5846a4cc3c91ff
env:
GITHUB_ACTIONS: 1
with:
docs-folder: "./"
pre-build-command: "apt-get update -y && apt-get install -y pandoc git"
build-command: "sphinx-build -T -b gettext . _build"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poeditor
- name: Display the dir
run: ls -la ./_build
shell: bash
- name: CHMOD
run: sudo chmod a+rw ./_build/docs.pot
shell: bash
- name: Archive production artifacts
uses: actions/upload-artifact@v2
with:
name: save-docs-pot
path: |
./_build/*.pot
- name: Upload terms
env:
POEDITOR_API_TOKEN: ${{ secrets.POEDITOR_API_TOKEN }}
POEDITOR_PROJECT_ID: "392089"
run: |
python upload_terms.py

0 comments on commit 456853a

Please sign in to comment.