Update installing-flashcard.md #9
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: [ main ] | |
paths: | |
- 'pages/_en-US/**.md' | |
- '_data/_en-US/**.json' | |
- 'assets/js/i18n/en-US.js' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '3.2' | |
bundler-cache: true | |
# Build the site using Jekyll | |
# No point pushing to Crowdin if the site build is failing | |
- name: Test site build via Jekyll | |
run: JEKYLL_ENV=production bundle exec jekyll build | |
- name: Push to Crowdin | |
uses: crowdin/github-action@v2 | |
with: | |
upload_sources: true | |
env: | |
CROWDIN_TOKEN: ${{ secrets.CROWDIN_TOKEN }} |