-
Notifications
You must be signed in to change notification settings - Fork 23
41 lines (35 loc) · 1.01 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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