Update Sponsor Image (#3883) #411
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 Documents | |
on: | |
push: | |
branches: [master] | |
workflow_dispatch: | |
jobs: | |
push_files_to_crowdin: | |
name: Push files to Crowdin | |
if: github.repository == 'wailsapp/wails' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Verify Changed files | |
id: changed-files | |
uses: tj-actions/changed-files@v41 | |
with: | |
files: | | |
website/**/*.mdx | |
website/**/*.md | |
website/**/*.json | |
- name: Setup Nodejs | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 20.x | |
- name: Setup Task | |
uses: arduino/setup-task@v1 | |
with: | |
version: 3.x | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Upload source documents | |
if: steps.changed-files.outputs.any_changed == 'true' | |
env: | |
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} | |
working-directory: ./website | |
run: task crowdin:push |