mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-02 19:50:15 +08:00
chore: update workflows (#1977)
* chore: remove useless files * chore: fix check path * chore: add workflow to auto push to crowdin after website update * fix: fix workflow config
This commit is contained in:
parent
3e73368540
commit
8b07a0f582
36
.github/workflows/build.yml
vendored
36
.github/workflows/build.yml
vendored
@ -1,36 +0,0 @@
|
|||||||
name: Build
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [main]
|
|
||||||
pull_request:
|
|
||||||
branches: [main]
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build-v2:
|
|
||||||
name: v2 Build
|
|
||||||
if: github.repository == 'wailsapp/wails'
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
os: [ubuntu-latest, windows-latest, macOS-latest]
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
ref: "master"
|
|
||||||
submodules: true
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Setup Go
|
|
||||||
uses: actions/setup-go@v3
|
|
||||||
with:
|
|
||||||
go-version: ">=1.18.0"
|
|
||||||
|
|
||||||
- name: Build Wails CLI
|
|
||||||
run: |
|
|
||||||
cd ./v2/cmd/wails
|
|
||||||
go install
|
|
||||||
wails -help
|
|
3
.github/workflows/check_docs.yml
vendored
3
.github/workflows/check_docs.yml
vendored
@ -16,7 +16,8 @@ jobs:
|
|||||||
id: verify-changed-files
|
id: verify-changed-files
|
||||||
with:
|
with:
|
||||||
files: |
|
files: |
|
||||||
v2/website/*.mdx
|
website/**/*.mdx
|
||||||
|
website/**/*.md
|
||||||
|
|
||||||
- name: Run step only when files change.
|
- name: Run step only when files change.
|
||||||
if: steps.verify-changed-files.outputs.files_changed != 'true'
|
if: steps.verify-changed-files.outputs.files_changed != 'true'
|
||||||
|
38
.github/workflows/push-to-crowdin.yml
vendored
Normal file
38
.github/workflows/push-to-crowdin.yml
vendored
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
name: Push files to Crowdin
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [master]
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
docs:
|
||||||
|
name: Push files to Crowdin
|
||||||
|
if: github.repository == 'wailsapp/wails'
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Verify Changed files
|
||||||
|
uses: tj-actions/verify-changed-files@v11.1
|
||||||
|
id: verify-changed-files
|
||||||
|
with:
|
||||||
|
files: |
|
||||||
|
website/**/*.mdx
|
||||||
|
website/**/*.md
|
||||||
|
website/**/*.json
|
||||||
|
|
||||||
|
- name: Set node
|
||||||
|
if: steps.verify-changed-files.outputs.files_changed != 'true'
|
||||||
|
uses: actions/setup-node@v2
|
||||||
|
with:
|
||||||
|
node-version: 16.x
|
||||||
|
|
||||||
|
- name: Push files
|
||||||
|
env:
|
||||||
|
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
|
||||||
|
run: |
|
||||||
|
cd website
|
||||||
|
corepack enable
|
||||||
|
pnpm install
|
||||||
|
pnpm run crowdin push -b master
|
Loading…
Reference in New Issue
Block a user