chore: add i18n workflow

This commit is contained in:
Stavros
2025-03-30 15:35:06 +03:00
parent 2ed90dfa34
commit 6dc461c11e

48
.github/workflows/translations.yml vendored Normal file
View File

@@ -0,0 +1,48 @@
name: Publish translations
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Move translations
run: |
mkdir -p dist
mv frontend/src/lib/i18n/locales 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