diff --git a/.github/workflows/impress.yml b/.github/workflows/impress.yml index 5fdf3a97..e697e82f 100644 --- a/.github/workflows/impress.yml +++ b/.github/workflows/impress.yml @@ -205,68 +205,3 @@ jobs: - name: Run tests run: ~/.local/bin/pytest -n 2 - - i18n-crowdin: - runs-on: ubuntu-latest - steps: - - - uses: actions/create-github-app-token@v1 - id: app-token - with: - app-id: ${{ secrets.APP_ID }} - private-key: ${{ secrets.PRIVATE_KEY }} - owner: ${{ github.repository_owner }} - repositories: "infrastructure,secrets" - - - name: Checkout repository - uses: actions/checkout@v2 - with: - submodules: recursive - token: ${{ steps.app-token.outputs.token }} - - - name: Load sops secrets - uses: rouja/actions-sops@main - with: - secret-file: secrets/numerique-gouv/impress/secrets.enc.env - age-key: ${{ secrets.SOPS_PRIVATE }} - - - name: Install gettext (required to make messages) - run: | - sudo apt-get update - sudo apt-get install -y gettext - - - name: Install Python - uses: actions/setup-python@v3 - with: - python-version: "3.10" - - - name: Install development dependencies - working-directory: src/backend - run: pip install --user .[dev] - - - name: Generate the translation base file - run: ~/.local/bin/django-admin makemessages --keep-pot --all - - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: "18.x" - cache: "yarn" - cache-dependency-path: src/frontend/yarn.lock - - - name: Install dependencies - run: cd src/frontend/ && yarn install --frozen-lockfile - - - name: Extract the frontend translation - run: make frontend-i18n-extract - - - name: Upload files to Crowdin - run: | - docker run \ - --rm \ - -e CROWDIN_API_TOKEN=$CROWDIN_API_TOKEN \ - -e CROWDIN_PROJECT_ID=$CROWDIN_PROJECT_ID \ - -e CROWDIN_BASE_PATH=$CROWDIN_BASE_PATH \ - -v "${{ github.workspace }}:/app" \ - crowdin/cli:3.16.0 \ - crowdin upload sources -c /app/crowdin/config.yml