From 00fbbfc4f22afdee990eaebf6289dada1071040c Mon Sep 17 00:00:00 2001 From: Stavros Date: Thu, 15 May 2025 16:07:38 +0300 Subject: [PATCH] chore: remove translations cdn --- .github/workflows/translations.yml | 98 ------------------------------ 1 file changed, 98 deletions(-) delete mode 100644 .github/workflows/translations.yml diff --git a/.github/workflows/translations.yml b/.github/workflows/translations.yml deleted file mode 100644 index 2633469..0000000 --- a/.github/workflows/translations.yml +++ /dev/null @@ -1,98 +0,0 @@ -name: Publish translations - -on: - push: - branches: - - i18n_v* - workflow_dispatch: - -permissions: - contents: read - pages: write - id-token: write - -concurrency: - group: pages - cancel-in-progress: false - -jobs: - get-branches: - runs-on: ubuntu-latest - outputs: - i18n-branches: ${{ steps.get-branches.outputs.result }} - steps: - - name: Get branches - id: get-branches - uses: actions/github-script@v7 - with: - script: | - const { data: repos } = await github.rest.repos.listBranches({ - owner: context.repo.owner, - repo: context.repo.repo, - }) - - const i18nBranches = repos.filter((branch) => branch.name.startsWith("i18n_v")) - const i18nBranchNames = i18nBranches.map((branch) => branch.name) - - return i18nBranchNames - - get-translations: - needs: get-branches - runs-on: ubuntu-latest - strategy: - matrix: - branch: ${{ fromJson(needs.get-branches.outputs.i18n-branches) }} - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - ref: ${{ matrix.branch }} - - - name: Get translation version - id: get-version - run: | - branch=${{ matrix.branch }} - version=${branch#i18n_} - echo "version=$version" >> $GITHUB_OUTPUT - - - name: Upload translations - uses: actions/upload-artifact@v4 - with: - name: ${{ steps.get-version.outputs.version }} - path: frontend/src/lib/i18n/locales - - build: - needs: get-translations - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Setup Pages - uses: actions/configure-pages@v4 - - - name: Prepare output directory - run: | - mkdir -p dist/i18n/ - - - name: Download translations - uses: actions/download-artifact@v4 - with: - path: dist/i18n/ - - - name: Upload artifact - uses: actions/upload-pages-artifact@v3 - with: - path: dist - - deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - needs: build - runs-on: ubuntu-latest - name: Deploy - steps: - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v4