|
15 | 15 | - Republish
|
16 | 16 | - Dry Run
|
17 | 17 | version:
|
18 |
| - description: 'Version to publish (default: latest cli release)' |
| 18 | + description: 'Version to publish (default: latest desktop release)' |
19 | 19 | required: true
|
20 | 20 | type: string
|
21 | 21 | default: latest
|
|
35 | 35 | default: true
|
36 | 36 | type: boolean
|
37 | 37 |
|
38 |
| -defaults: |
39 |
| - run: |
40 |
| - shell: bash |
41 |
| - |
42 | 38 | jobs:
|
43 | 39 | setup:
|
44 | 40 | name: Setup
|
@@ -215,7 +211,7 @@ jobs:
|
215 | 211 |
|
216 | 212 | - name: Download artifacts
|
217 | 213 | working-directory: apps/desktop/dist
|
218 |
| - run: wget https://github.com/bitwarden/clients/releases/${{ env._RELEASE_TAG }}/download/bitwarden_${{ env._PKG_VERSION }}_amd64.snap |
| 214 | + run: wget https://github.com/bitwarden/clients/releases/download/${{ env._RELEASE_TAG }}/bitwarden_${{ env._PKG_VERSION }}_amd64.snap |
219 | 215 |
|
220 | 216 | - name: Deploy to Snap Store
|
221 | 217 | if: ${{ inputs.publish_type != 'Dry Run' }}
|
@@ -256,23 +252,20 @@ jobs:
|
256 | 252 | secrets: "cli-choco-api-key"
|
257 | 253 |
|
258 | 254 | - name: Setup Chocolatey
|
259 |
| - shell: pwsh |
260 | 255 | run: choco apikey --key $env:CHOCO_API_KEY --source https://push.chocolatey.org/
|
261 | 256 | env:
|
262 | 257 | CHOCO_API_KEY: ${{ steps.retrieve-secrets.outputs.cli-choco-api-key }}
|
263 | 258 |
|
264 | 259 | - name: Make dist dir
|
265 |
| - shell: pwsh |
266 | 260 | run: New-Item -ItemType directory -Path ./dist
|
267 | 261 | working-directory: apps/desktop
|
268 | 262 |
|
269 | 263 | - name: Download artifacts
|
270 | 264 | working-directory: apps/desktop/dist
|
271 |
| - run: wget https://github.com/bitwarden/clients/releases/${{ env._RELEASE_TAG }}/download/bitwarden.${{ env._PKG_VERSION }}.nupkg |
| 265 | + run: Invoke-WebRequest -Uri "https://github.com/bitwarden/clients/releases/download/${{ env._RELEASE_TAG }}/bitwarden.${{ env._PKG_VERSION }}.nupkg" -OutFile bitwarden.${{ env._PKG_VERSION }}.nupkg |
272 | 266 |
|
273 | 267 | - name: Push to Chocolatey
|
274 | 268 | if: ${{ inputs.publish_type != 'Dry Run' }}
|
275 |
| - shell: pwsh |
276 | 269 | run: choco push --source=https://push.chocolatey.org/
|
277 | 270 | working-directory: apps/desktop/dist
|
278 | 271 |
|
|
0 commit comments