1
0
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:
Jonah Aragon 2024-03-30 23:37:34 -05:00
parent d976455acf
commit b48feb9940
Signed by: jonah
SSH Key Fingerprint: SHA256:oJSBSFgpWl4g+IwjL96Ya8ocGfI7r6VKnQw+257pZZ0

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
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:
ref: main
repo: 'privacyguides/privacyguides.org'
lang: ${{ matrix.lang }}
continue-on-error: true
- name: Checkout translations cleanup:
uses: actions/checkout@v3 if: ${{ always() }}
with: needs: build
path: 'i18n-download' uses: privacyguides/privacyguides.org/.github/workflows/cleanup.yml@main
- name: Move translations to site
run: |
cp -rl i18n-download/i18n .
cp -rl i18n-download/includes .
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 }}