Skip to content

Commit b1403f7

Browse files
committed
Update workflow for l10n, according to fork name
1 parent 553fbd2 commit b1403f7

File tree

1 file changed

+45
-5
lines changed

1 file changed

+45
-5
lines changed
Lines changed: 45 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: pre-release
1+
name: automatic-release
22

33
on:
44
push:
@@ -9,8 +9,48 @@ on:
99
- cron: '0 0 * * 6'
1010

1111
jobs:
12+
l10n:
13+
name: l10n
14+
continue-on-error: true
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v3
19+
- name: Push l10n updates
20+
run: |
21+
git config --global user.name github-actions
22+
git config --global user.email github-actions@github.com
23+
git remote add l10n https://github.com/nvdaaddons/MathCAT
24+
git fetch l10n
25+
git reset l10n/stable addon/doc addon/locale
26+
git commit -m "Update translations"
27+
git pull
28+
git push
29+
1230
pre-release:
13-
uses: nvdaes/nvdaAddonWorkflows/.github/workflows/automaticRelease.yaml@main
14-
permissions:
15-
contents: write
16-
31+
name: Pre Release
32+
needs: l10n
33+
runs-on: ubuntu-latest
34+
steps:
35+
- name: Checkout code
36+
uses: actions/checkout@v3
37+
- name: Set up Python 3.8
38+
uses: actions/setup-python@v4
39+
with:
40+
python-version: 3.8
41+
- name: Install dependencies
42+
run: |
43+
pip install scons markdown
44+
sudo apt update
45+
sudo apt install gettext
46+
- name: Build
47+
run: scons version=${{ github.sha }}
48+
- name: Automatic release
49+
uses: marvinpinto/action-automatic-releases@latest
50+
with:
51+
repo_token: ${{ secrets.GITHUB_TOKEN }}
52+
automatic_release_tag: latest
53+
prerelease: true
54+
title: Development Build
55+
files: |
56+
*.nvda-addon

0 commit comments

Comments
 (0)