mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 22:55:48 +01:00
* chore: update dependencies * docs: update source documents * chore: use Taskfile instead of scripts
41 lines
1,004 B
YAML
41 lines
1,004 B
YAML
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@v35
|
|
with:
|
|
files: |
|
|
website/**/*.mdx
|
|
website/**/*.md
|
|
website/**/*.json
|
|
|
|
- name: Setup Nodejs
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: 18.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
|