CI: Split crowdin to standalone action

This commit is contained in:
Łukasz Domeradzki 2024-05-20 02:25:35 +02:00
parent 203dc6daf6
commit 5f097c4002
No known key found for this signature in database
GPG key ID: 6B138B4C64555AEA
2 changed files with 28 additions and 9 deletions

View file

@ -39,12 +39,3 @@ jobs:
- name: Run ${{ matrix.configuration }} ArchiSteamFarm.Tests
run: dotnet test ArchiSteamFarm.Tests -c "${{ matrix.configuration }}" -p:ContinuousIntegrationBuild=true -p:UseAppHost=false --nologo
- name: Upload latest strings for translation on Crowdin
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && matrix.configuration == 'Release' && startsWith(matrix.os, 'ubuntu-') }}
uses: crowdin/github-action@v1.20.4
with:
crowdin_branch_name: main
config: '.github/crowdin.yml'
project_id: ${{ secrets.ASF_CROWDIN_PROJECT_ID }}
token: ${{ secrets.ASF_CROWDIN_API_TOKEN }}

28
.github/workflows/crowdin-ci.yml vendored Normal file
View file

@ -0,0 +1,28 @@
name: ASF-crowdin-ci
on:
push:
branches:
- main
permissions: {}
jobs:
upload:
environment: main
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4.1.6
with:
show-progress: false
submodules: recursive
- name: Upload latest strings for translation on Crowdin
uses: crowdin/github-action@v1.20.4
with:
crowdin_branch_name: main
config: '.github/crowdin.yml'
project_id: ${{ secrets.ASF_CROWDIN_PROJECT_ID }}
token: ${{ secrets.ASF_CROWDIN_API_TOKEN }}