1
0
mirror of https://github.com/privacyguides/i18n.git synced 2025-08-05 07:31:07 +00:00

Update test build workflow

This commit is contained in:
2024-03-30 23:37:34 -05:00
parent d976455acf
commit b48feb9940

View File

@@ -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
runs-on: ubuntu-latest
steps:
- name: Checkout website
uses: actions/checkout@v3
with: with:
repository: 'privacyguides/privacyguides.org' repo: ${{ matrix.repo }}
fetch-depth: '0' secrets:
ssh-key: ${{ secrets.ACTIONS_SSH_KEY }} ACTIONS_SSH_KEY: ${{ secrets.ACTIONS_SSH_KEY }}
submodules: 'true'
- name: Checkout translations build:
uses: actions/checkout@v3 needs: submodule
strategy:
matrix:
lang: [es, fr, he, it, nl, ru, zh-Hant]
fail-fast: false
permissions:
contents: read
uses: privacyguides/privacyguides.org/.github/workflows/build.yml@main
with: with:
path: 'i18n-download' ref: main
repo: 'privacyguides/privacyguides.org'
lang: ${{ matrix.lang }}
continue-on-error: true
- name: Move translations to site cleanup:
run: | if: ${{ always() }}
cp -rl i18n-download/i18n . needs: build
cp -rl i18n-download/includes . uses: privacyguides/privacyguides.org/.github/workflows/cleanup.yml@main
cp -rl i18n-download/theme .
- name: Python setup
uses: actions/setup-python@v4
id: py38
with:
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 }}