@@ -4,59 +4,13 @@ on: workflow_dispatch
44
55jobs :
66 buildAssets :
7- uses : ./.github/workflows/build_assets.yml
7+ uses : ./.github/workflows/part_assets.yml
8+ permissions :
9+ contents : read
810
9- buildWin64 :
11+ buildWin-X64 :
1012 needs : buildAssets
11- runs-on : windows-2022
12- steps :
13- - name : Python Setup
14- uses : actions/setup-python@v5
15- with :
16- python-version : " 3.13"
17- architecture : x64
18-
19- - name : Checkout Source
20- uses : actions/checkout@v4
21-
22- - name : Download Assets
23- uses : actions/download-artifact@v4
24- with :
25- name : nw-assets
26- path : novelwriter/assets
27-
28- - name : Build Setup Installer
29- id : build
30- run : |
31- echo "BUILD_VERSION=$(python pkgutils.py version)" >> $Env:GITHUB_OUTPUT
32- python pkgutils.py build-win-exe
33-
34- - name : Upload Unsigned Artifacts
35- id : upload-unsigned-artifact
36- uses : actions/upload-artifact@v4
37- with :
38- name : novelWriter-${{ steps.build.outputs.BUILD_VERSION }}-Win-Setup
39- path : dist/*.exe
40- if-no-files-found : error
41- retention-days : 14
42-
43- - name : Submit Signing Request
44- uses : signpath/github-action-submit-signing-request@v1
45- with :
46- api-token : " ${{ secrets.SIGNPATH_API_TOKEN }}"
47- organization-id : " 0471e52c-66fa-4e9a-bfb9-36167095ca3f"
48- project-slug : " novelWriter"
49- signing-policy-slug : " release-signing "
50- github-artifact-id : " ${{ steps.upload-unsigned-artifact.outputs.artifact-id }}"
51- wait-for-completion : true
52- output-artifact-directory : " dist/"
53- parameters : |
54- version: "${{ steps.build.outputs.BUILD_VERSION }}"
55-
56- - name : Upload Signed Artifacts
57- uses : actions/upload-artifact@v4
58- with :
59- name : novelWriter-${{ steps.build.outputs.BUILD_VERSION }}-Win-Setup-Signed
60- path : dist/*.exe
61- if-no-files-found : error
62- retention-days : 14
13+ uses : ./.github/workflows/part_win_x64.yml
14+ secrets : inherit
15+ permissions :
16+ contents : read
0 commit comments