forked from qiskit-community/qiskit-translations
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (30 loc) · 928 Bytes
/
main.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
name: Docs Publish
on:
push:
branches: [ master ]
jobs:
deploy:
runs-on: ubuntu-latest
strategy:
matrix:
language: [de_DE, ja_JP, ko_KR, pt_BR, fr_FR]
if: "!contains(github.event.head_commit.message, 'skip ci')"
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -U virtualenv setuptools wheel
pip install -U -r requirements-dev.txt sphinx-intl qiskit
sudo apt-get install graphviz pandoc
- name: Build and publish
env:
encrypted_rclone_key: ${{ secrets.encrypted_rclone_key }}
encrypted_rclone_iv: ${{ secrets.encrypted_rclone_iv }}
TRANSLATION_LANG: ${{ matrix.language }}
run: |
tools/deploy_translated_documentation.sh