Upload source files to Crowdin #2
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/_data/i18n/en-US.json' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
submodules: recursive | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '3.2' | |
bundler-cache: true | |
- name: Install dependencies | |
run: | | |
cd docs | |
bundle install | |
- name: Build test | |
run: | | |
cd docs | |
bundle exec jekyll build | |
- name: Push to Crowdin | |
uses: crowdin/github-action@v2 | |
with: | |
upload_sources: true | |
env: | |
CROWDIN_TOKEN: ${{ secrets.CROWDIN_TOKEN }} | |
DS_HOMEBREW_WIKI_CROWDIN_ID: ${{ secrets.DS_HOMEBREW_WIKI_CROWDIN_ID }} |