Skip to content

Commit 2b6c8f6

Browse files
committed
Fix publish desktop workflow
1 parent 9b1c7e5 commit 2b6c8f6

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

.github/workflows/publish-desktop.yml

+3-10
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515
- Republish
1616
- Dry Run
1717
version:
18-
description: 'Version to publish (default: latest cli release)'
18+
description: 'Version to publish (default: latest desktop release)'
1919
required: true
2020
type: string
2121
default: latest
@@ -35,10 +35,6 @@ on:
3535
default: true
3636
type: boolean
3737

38-
defaults:
39-
run:
40-
shell: bash
41-
4238
jobs:
4339
setup:
4440
name: Setup
@@ -215,7 +211,7 @@ jobs:
215211

216212
- name: Download artifacts
217213
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
219215

220216
- name: Deploy to Snap Store
221217
if: ${{ inputs.publish_type != 'Dry Run' }}
@@ -256,23 +252,20 @@ jobs:
256252
secrets: "cli-choco-api-key"
257253

258254
- name: Setup Chocolatey
259-
shell: pwsh
260255
run: choco apikey --key $env:CHOCO_API_KEY --source https://push.chocolatey.org/
261256
env:
262257
CHOCO_API_KEY: ${{ steps.retrieve-secrets.outputs.cli-choco-api-key }}
263258

264259
- name: Make dist dir
265-
shell: pwsh
266260
run: New-Item -ItemType directory -Path ./dist
267261
working-directory: apps/desktop
268262

269263
- name: Download artifacts
270264
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
272266

273267
- name: Push to Chocolatey
274268
if: ${{ inputs.publish_type != 'Dry Run' }}
275-
shell: pwsh
276269
run: choco push --source=https://push.chocolatey.org/
277270
working-directory: apps/desktop/dist
278271

0 commit comments

Comments
 (0)