Skip to content

Commit

Permalink
fix(ci): chocolatey publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
lidel committed Jan 24, 2024
1 parent 64b52f6 commit 37abd16
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/chocolatey.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ jobs:
uses: actions/checkout@v4

- name: Install Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '14'
node-version: '18.17.1'

- name: Cache bigger downloads
uses: actions/cache@v4
Expand All @@ -43,10 +43,13 @@ jobs:
run: npm ci --prefer-offline --no-audit --progress=false --cache ${{ github.workspace }}/.cache/npm

- name: Download .exe, update version, URL and hash
run: node pkgs\chocolatey\update.mjs ${{ env.release_name }}
run: node update.mjs ${{ env.release_name }}
working-directory: .\pkgs\chocolatey

- name: Create .nupkg
run: cd pkgs\chocolatey && choco pack
run: choco pack
working-directory: .\pkgs\chocolatey

- name: Publish to Chocolatey
run: choco push pkgs/chocolatey/ipfs-desktop.${{ env.release_name }}.nupkg --key ${{ secrets.chocolatey_key }} --source "https://push.chocolatey.org"
run: choco push ipfs-desktop.${{ env.release_name }}.nupkg --key ${{ secrets.chocolatey_key }} --source "https://push.chocolatey.org"
working-directory: .\pkgs\chocolatey

0 comments on commit 37abd16

Please sign in to comment.