Skip to content

Commit 07fccd8

Browse files
committed
feat: crowdin translations
1 parent e11533b commit 07fccd8

1 file changed

Lines changed: 11 additions & 21 deletions

File tree

.github/workflows/publish.yml

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
name: Steam Publish
2-
32
on:
43
push:
54
branches: [ master ]
@@ -32,20 +31,12 @@ jobs:
3231
- name: Checkout code
3332
uses: actions/checkout@v3
3433

35-
- name: Crowdin push and pull
36-
uses: crowdin/github-action@v1
37-
with:
38-
upload_sources: true
39-
upload_translations: false
40-
download_translations: true
41-
localization_branch_name: crowdin-translations
42-
create_pull_request: true
43-
pull_request_title: '🌐 New Crowdin Translations'
44-
pull_request_body: 'Updated translations from Crowdin'
45-
pull_request_base_branch_name: 'main'
34+
- name: Install Crowdin CLI
35+
run: npm install -g @crowdin/cli
36+
37+
- name: Download latest translations
38+
run: crowdin download
4639
env:
47-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48-
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
4940
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
5041

5142
- name: Setup .NET
@@ -61,21 +52,21 @@ jobs:
6152

6253
- name: Publish
6354
run: dotnet publish --configuration Release --output ./publish /p:EnableWindowsTargeting=true
64-
55+
6556
- name: Upload publish folder
6657
uses: actions/upload-artifact@v4
6758
with:
6859
name: publish-folder
6960
path: publish/**
70-
61+
7162
- name: Get version
7263
id: package_version
7364
uses: KageKirin/get-csproj-version@v1.0.0
7465
with:
7566
file: VRCFaceTracking/VRCFaceTracking.csproj
7667
xpath: //PropertyGroup/AssemblyVersion
7768
regex: '^(?<major>0|[1-9]\d*)\.(?<minor>0|[1-9]\d*)\.(?<patch>0|[1-9]\d*)\.(?<build>0|[1-9]\d*)$'
78-
69+
7970
deploy:
8071
if: github.event_name == 'push'
8172
runs-on: ubuntu-latest
@@ -86,8 +77,7 @@ jobs:
8677
with:
8778
name: publish-folder
8879
path: publish
89-
90-
# Skip Steam upload if not configured. Likely within a fork
80+
9181
- name: Deploy to Steam
9282
env:
9383
steam_username: ${{ secrets.STEAM_USERNAME }}
@@ -99,5 +89,5 @@ jobs:
9989
configVdf: ${{ secrets.STEAM_CONFIG_VDF }}
10090
appId: 3329480
10191
buildDescription: ${{ needs.build.outputs.version }}
102-
depot1Path: publish
103-
releaseBranch: development
92+
depot1Path: publish
93+
releaseBranch: development

0 commit comments

Comments
 (0)