Skip to content

Commit 358c700

Browse files
authored
Automatic release on push (#3)
Requested in nvaccess/AddonTemplate#1 Summary This creates a release when pushing to the main branch, uploading the l10nUtil.exe as an asset. Additional note I've included dependency updates from dependabot. @seanbudd , we can revert uv.lock if you want. We use the ncipollo/release action since I find it more updated than other similar actions and it uses node24. See
1 parent 7678c4a commit 358c700

4 files changed

Lines changed: 42 additions & 17 deletions

File tree

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: automatic-release
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
jobs:
8+
9+
build:
10+
uses: ./.github/workflows/buildExecutable.yaml
11+
12+
Automatic-release:
13+
needs: build
14+
runs-on: ubuntu-latest
15+
permissions:
16+
contents: write
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v6
20+
- name: Download artifact
21+
uses: actions/download-artifact@v8
22+
- name: Release
23+
run: |
24+
gh release create v${{ github.run_number }} l10nUtil.exe
25+
env:
26+
GH_TOKEN: ${{ github.token }}

.github/workflows/buildExecutable.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
name: Build executable
22
on:
3-
push:
4-
branches: [main]
53
pull_request:
64
branches: [main]
75
workflow_dispatch:
6+
workflow_call:
87
jobs:
98
build:
109
runs-on: windows-latest

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ dependencies = [
2424
"crowdin-api-client==1.21.0",
2525
"l2m4m==1.0.4",
2626
"lxml==6.0.2",
27-
"markdown>=3.10",
27+
"markdown==3.10",
2828
"markdown-link-attr-modifier==0.2.1",
2929
"mdx-gh-links==0.4",
3030
"mdx-truly-sane-lists==1.3",
3131
"nh3==0.2.19",
32-
"pymdown-extensions>=10.12",
33-
"requests>=2.32.5",
32+
"pymdown-extensions==10.12",
33+
"requests==2.33.0",
3434
]
3535
[project.urls]
3636
Repository = "https://github.com/nvaccess/nvdaL10n"

uv.lock

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)