mirror of
https://github.com/privacyguides/i18n.git
synced 2025-06-16 16:01:15 +00:00
Update test build workflow
This commit is contained in:
parent
d976455acf
commit
b48feb9940
78
.github/workflows/site-build.yml
vendored
78
.github/workflows/site-build.yml
vendored
@ -25,58 +25,36 @@ on:
|
|||||||
schedule:
|
schedule:
|
||||||
- cron: '0 17 * * *'
|
- cron: '0 17 * * *'
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
submodule:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
matrix:
|
||||||
language: [es, fr, he, it, nl, ru, zh-Hant]
|
repo: [mkdocs-material-insiders, brand, i18n]
|
||||||
|
uses: privacyguides/privacyguides.org/.github/workflows/download-repo.yml@main
|
||||||
|
with:
|
||||||
|
repo: ${{ matrix.repo }}
|
||||||
|
secrets:
|
||||||
|
ACTIONS_SSH_KEY: ${{ secrets.ACTIONS_SSH_KEY }}
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
build:
|
||||||
steps:
|
needs: submodule
|
||||||
- name: Checkout website
|
strategy:
|
||||||
uses: actions/checkout@v3
|
matrix:
|
||||||
with:
|
lang: [es, fr, he, it, nl, ru, zh-Hant]
|
||||||
repository: 'privacyguides/privacyguides.org'
|
fail-fast: false
|
||||||
fetch-depth: '0'
|
permissions:
|
||||||
ssh-key: ${{ secrets.ACTIONS_SSH_KEY }}
|
contents: read
|
||||||
submodules: 'true'
|
uses: privacyguides/privacyguides.org/.github/workflows/build.yml@main
|
||||||
|
with:
|
||||||
- name: Checkout translations
|
ref: main
|
||||||
uses: actions/checkout@v3
|
repo: 'privacyguides/privacyguides.org'
|
||||||
with:
|
lang: ${{ matrix.lang }}
|
||||||
path: 'i18n-download'
|
continue-on-error: true
|
||||||
|
|
||||||
- name: Move translations to site
|
|
||||||
run: |
|
|
||||||
cp -rl i18n-download/i18n .
|
|
||||||
cp -rl i18n-download/includes .
|
|
||||||
cp -rl i18n-download/theme .
|
|
||||||
|
|
||||||
- name: Python setup
|
cleanup:
|
||||||
uses: actions/setup-python@v4
|
if: ${{ always() }}
|
||||||
id: py38
|
needs: build
|
||||||
with:
|
uses: privacyguides/privacyguides.org/.github/workflows/cleanup.yml@main
|
||||||
python-version: '3.8'
|
|
||||||
cache: 'pipenv'
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: |
|
|
||||||
pip install pipenv
|
|
||||||
pipenv install
|
|
||||||
sudo apt install pngquant
|
|
||||||
echo '${{ steps.py38.outputs.cache-hit }}'
|
|
||||||
|
|
||||||
- name: Build website
|
|
||||||
env:
|
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
CARDS: true
|
|
||||||
run: |
|
|
||||||
pipenv run mkdocs build --strict --config-file config/mkdocs.${{ matrix.language }}.yml
|
|
||||||
pipenv run mkdocs --version
|
|
||||||
|
|
||||||
- name: Package website
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: ${{ matrix.language }}
|
|
||||||
path: site/${{ matrix.language }}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user