Cleaned transcript for Austin video "Intro to Prob. Programming with … #28
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: Get text and upload to transifex | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- .github/workflows/tx-push.yml | |
- '**.md' | |
- '**.py' | |
- '**.ipynb' | |
- requirements-docs.txt | |
jobs: | |
txpush: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: Install dependencies | |
run: pip install -r requirements-docs.txt | |
- name: Generate translatable strings | |
run: sphinx-build . gettext -b gettext | |
- name: Push to transifex | |
run: | | |
curl -o- https://raw.githubusercontent.com/transifex/cli/master/install.sh | bash | |
./tx --token ${{ secrets.TX_TOKEN }} push --source |