|
41 | 41 | image: ubuntu-22.04 |
42 | 42 | shell: bash |
43 | 43 | forge_platform: linux |
| 44 | + - name: windows |
| 45 | + image: win-signing |
| 46 | + shell: cmd |
| 47 | + forge_platform: win32 |
44 | 48 | runs-on: ${{ matrix.os.image }} |
45 | 49 | steps: |
46 | 50 | - uses: actions/checkout@v4 |
|
80 | 84 | prerelease: true |
81 | 85 | draft: false |
82 | 86 | fail_on_unmatched_files: true |
83 | | - files: apps/desktop/upload/${{ matrix.arch }}/*.* |
| 87 | + files: apps/desktop/upload/*.* |
84 | 88 | tag_name: nightly |
85 | 89 | name: Nightly Build |
86 | 90 |
|
|
89 | 93 | if: ${{ github.event_name == 'pull_request' }} |
90 | 94 | with: |
91 | 95 | name: TriliumNextNotes ${{ matrix.os.name }} ${{ matrix.arch }} |
92 | | - path: apps/desktop/upload/${{ matrix.arch }} |
93 | | - |
94 | | - nightly-electron-windows: |
95 | | - name: Deploy nightly Windows |
96 | | - runs-on: win-signing |
97 | | - steps: |
98 | | - - uses: actions/checkout@v4 |
99 | | - - uses: pnpm/action-setup@v4 |
100 | | - - name: Set up node & dependencies |
101 | | - uses: actions/setup-node@v4 |
102 | | - with: |
103 | | - node-version: 22 |
104 | | - cache: 'pnpm' |
105 | | - - name: Install dependencies |
106 | | - run: pnpm install --frozen-lockfile |
107 | | - - uses: nrwl/nx-set-shas@v4 |
108 | | - - name: Update nightly version |
109 | | - run: npm run chore:ci-update-nightly-version |
110 | | - - name: Run the build |
111 | | - uses: ./.github/actions/build-electron |
112 | | - with: |
113 | | - os: windows |
114 | | - arch: x64,arm64 |
115 | | - shell: cmd |
116 | | - forge_platform: win32 |
117 | | - env: |
118 | | - APPLE_APP_CERTIFICATE_BASE64: ${{ secrets.APPLE_APP_CERTIFICATE_BASE64 }} |
119 | | - APPLE_APP_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_APP_CERTIFICATE_PASSWORD }} |
120 | | - APPLE_INSTALLER_CERTIFICATE_BASE64: ${{ secrets.APPLE_INSTALLER_CERTIFICATE_BASE64 }} |
121 | | - APPLE_INSTALLER_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_INSTALLER_CERTIFICATE_PASSWORD }} |
122 | | - APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }} |
123 | | - APPLE_ID: ${{ secrets.APPLE_ID }} |
124 | | - APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }} |
125 | | - WINDOWS_SIGN_EXECUTABLE: ${{ vars.WINDOWS_SIGN_EXECUTABLE }} |
126 | | - |
127 | | - - name: Publish release |
128 | | - uses: softprops/action-gh-release@v2.3.2 |
129 | | - if: ${{ github.event_name != 'pull_request' }} |
130 | | - with: |
131 | | - make_latest: false |
132 | | - prerelease: true |
133 | | - draft: false |
134 | | - fail_on_unmatched_files: true |
135 | | - files: apps/desktop/upload/*/*.* |
136 | | - tag_name: nightly |
137 | | - name: Nightly Build |
138 | | - |
139 | | - - name: Publish artifacts |
140 | | - uses: actions/upload-artifact@v4 |
141 | | - if: ${{ github.event_name == 'pull_request' }} |
142 | | - with: |
143 | | - name: TriliumNextNotes windows x64 |
144 | | - path: apps/desktop/upload/x64 |
145 | | - |
146 | | - - name: Publish artifacts |
147 | | - uses: actions/upload-artifact@v4 |
148 | | - if: ${{ github.event_name == 'pull_request' }} |
149 | | - with: |
150 | | - name: TriliumNextNotes windows arm64 |
151 | | - path: apps/desktop/upload/arm64 |
| 96 | + path: apps/desktop/upload |
152 | 97 |
|
153 | 98 | nightly-server: |
154 | 99 | name: Deploy server nightly |
|
0 commit comments