Update theme submodule #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Upload source files to Crowdin | |
on: | |
push: | |
branches: [ master ] | |
paths: | |
- 'docs/**.md' | |
- 'docs/.vitepress/i18n/strings/en_US.json' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
submodules: recursive | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: npm | |
- name: Install dependencies | |
run: npm ci | |
# Build the site using Vitepress | |
# No point pushing to Crowdin if the site build is failing | |
- name: Build site | |
run: npm run docs:build | |
- name: Push to Crowdin | |
uses: crowdin/github-action@v1 | |
with: | |
upload_sources: true | |
env: | |
CROWDIN_TOKEN: ${{ secrets.CROWDIN_TOKEN }} |