Release #798
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: Release | |
on: | |
push: | |
pull_request: | |
schedule: | |
- cron: "22 11 * * *" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: install requirements | |
run: | | |
pip install -r requirements.txt | |
sudo apt-get install -y gettext | |
- name: tx push / pull | |
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} | |
env: | |
TX_TOKEN: ${{ secrets.TX_TOKEN }} | |
run: | | |
curl -OL https://github.com/transifex/cli/releases/download/v1.3.1/tx-linux-amd64.tar.gz | |
tar -xvzf tx-linux-amd64.tar.gz | |
make gettext | |
make transifex_pull | |
- name: build | |
run: | | |
make html | |
touch build/html/.nojekyll | |
- name: Deploy 🚀 | |
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: build/html |