11name : repackage-notion-app
22
33on :
4- push :
5- branches : [main]
6- paths :
7- - ' env.sh'
8- - ' .github/workflows/notion-repackaged.yml'
9-
104 workflow_dispatch :
115 inputs : {}
126
@@ -20,16 +14,16 @@ jobs:
2014 steps :
2115 - uses : actions/checkout@v2
2216 - id : preload-variables
23- name : Load variables and set them as outputs
17+ name : load variables and set them as outputs
2418 run : |
2519 source env.sh
26-
2720 echo "::set-output name=notion_version::$NOTION_VERSION"
21+ echo "::set-output name=notion_repackaged_edition::$NOTION_REPACKAGED_EDITION"
2822 echo "::set-output name=notion_repackaged_revision::$NOTION_REPACKAGED_REVISION"
29-
3023 echo "::set-output name=notion_repackaged_version_rev::$NOTION_REPACKAGED_VERSION_REV"
3124 outputs :
3225 notion_version : ${{ steps.preload-variables.outputs.notion_version }}
26+ notion_repackaged_edition : ${{ steps.preload-variables.outputs.notion_repackaged_edition }}
3327 notion_repackaged_revision : ${{ steps.preload-variables.outputs.notion_repackaged_revision }}
3428 notion_repackaged_version_rev : ${{ steps.preload-variables.outputs.notion_repackaged_version_rev }}
3529
@@ -44,11 +38,12 @@ jobs:
4438 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4539 with :
4640 version : ${{ needs.preload-variables.outputs.notion_repackaged_version_rev }}
41+ tag : v${{ needs.preload-variables.outputs.notion_repackaged_version_rev }}
4742
4843 generate-sources :
4944 name : extract and patch vanilla and enhanced sources
5045 runs-on : ubuntu-latest
51- needs : [preload-variables, create-release ]
46+ needs : []
5247 steps :
5348 - uses : actions/checkout@v2
5449 - name : install build dependencies
@@ -74,10 +69,11 @@ jobs:
7469
7570 build-app :
7671 name : build app
77- needs : [generate-sources, preload-variables, create-release ]
72+ needs : [create-release, generate-sources ]
7873 runs-on : ${{ matrix.os }}
7974 env :
8075 NOTION_VERSION : ${{ needs.preload-variables.outputs.notion_version }}
76+ NOTION_REPACKAGED_EDITION : ${{ needs.preload-variables.outputs.notion_repackaged_edition }}
8177 NOTION_REPACKAGED_REVISION : ${{ needs.preload-variables.outputs.notion_repackaged_revision }}
8278 strategy :
8379 matrix :
@@ -107,7 +103,7 @@ jobs:
107103 path : build/${{ matrix.edition }}-src.zip
108104 - name : unzip sources with 7z
109105 run : 7z x build/${{ matrix.edition }}-src.zip
110- - name : Install Linux build dependencies
106+ - name : install linux build dependencies
111107 if : matrix.os == 'ubuntu-latest'
112108 run : sudo apt-get install --no-install-recommends -y libopenjp2-tools rpm libarchive-tools
113109 - name : install dependencies
@@ -124,7 +120,7 @@ jobs:
124120 env :
125121 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
126122 NOTION_REPACKAGED_EDITION : ${{ matrix.edition }}
127- run : npx electron-builder --${{ matrix.target }} -c ../electron-builder.js
123+ run : node_modules/.bin/ electron-builder --${{ matrix.target }} -c ../electron-builder.js
128124
129125 cleanup :
130126 name : cleanup artifacts
@@ -137,4 +133,4 @@ jobs:
137133 steps :
138134 - uses : geekyeggo/delete-artifact@v1
139135 with :
140- name : ' ${{ matrix.edition }}-sources'
136+ name : ${{ matrix.edition }}-sources
0 commit comments