forked from neomutt/neomutt
-
Notifications
You must be signed in to change notification settings - Fork 0
70 lines (57 loc) · 1.64 KB
/
translate.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Translate
on:
push:
branches:
- 'translate'
workflow_dispatch:
jobs:
leaderboard:
name: Update Leaderboard
runs-on: ubuntu-latest
steps:
- name: Check secret
run: |
[ -n "${{ secrets.TRANSLATE_DEPLOY_KEY }}" ]
- name: Install Build Software
run: |
sudo apt install -y gettext
- name: Checkout NeoMutt
uses: actions/checkout@v3
with:
repository: neomutt/neomutt
path: neomutt
fetch-depth: 3
- name: Checkout Translate Scripts
uses: actions/checkout@v3
with:
repository: neomutt/action-translate
path: scripts
- name: Checkout Website
uses: actions/checkout@v3
with:
repository: neomutt/neomutt.github.io
path: website
persist-credentials: false
# otherwise GITHUB_TOKEN will be used, rather than the Personal Access Token
- name: Set Up Git
run: |
git config --global user.email "[email protected]"
git config --global user.name "Richard Russon (DEPLOY)"
- name: Validate Translations
run: |
cd neomutt/po
$GITHUB_WORKSPACE/scripts/stats.sh
- name: Generate Webpage
run: |
cd neomutt/po
$GITHUB_WORKSPACE/scripts/generate-webpage.sh > $GITHUB_WORKSPACE/website/translate.html
- name: Commit
run: |
scripts/commit.sh neomutt website translate.html
- name: Push to Website
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.TRANSLATE_DEPLOY_KEY }}
branch: main
directory: website
repository: neomutt/neomutt.github.io