diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5fc4561f5c..0143389f81 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -177,7 +177,7 @@ jobs: name: Publish Windows runs-on: windows-latest needs: build - #if: github.event_name == 'release' + if: github.event_name == 'release' steps: - name: Checkout repo uses: actions/checkout@v2 @@ -193,32 +193,28 @@ jobs: name: bitwarden-cli.${{ env.PACKAGE_VERSION }}.nupkg path: ./dist/bitwarden-cli.${{ env.PACKAGE_VERSION }}.nupkg - #- name: Setup Chocolatey - # run: choco apikey --key $env:CHOCO_API_KEY --source https://push.chocolatey.org/ - # env: - # CHOCO_API_KEY: ${{ secrets.CHOCO_API_KEY }} + - name: Setup Chocolatey + run: choco apikey --key $env:CHOCO_API_KEY --source https://push.chocolatey.org/ + env: + CHOCO_API_KEY: ${{ secrets.CHOCO_API_KEY }} - #- name: Publish - # run: | - # .\scripts\choco-update.ps1 -version $env:PACKAGE_VERSION - # Get-ChildItem dist + - name: Publish + run: | + .\scripts\choco-update.ps1 -version $env:PACKAGE_VERSION + Get-ChildItem dist - name: Publish shell: pwsh run: | # In place of ./scripts/choco-update.ps1 cd ./dist - Get-ChildItem - Write-Host "[+] Intead of pushing with choco, we are testing and writing this out" - Write-Host " Nuget Packge: bitwarden-cli.${{ env.PACKAGE_VERSION }}.nupkg" - #choco push + choco push # This process seems independent from the others build_snap: name: Build Snap runs-on: ubuntu-latest - #if: github.event_name == 'release' steps: - name: Checkout repo uses: actions/checkout@v2 @@ -231,8 +227,6 @@ jobs: - name: Install Snapcraft uses: samuelmeuli/action-snapcraft@v1 - #with: - # snapcraft_token: ${{ secrets.SNAP_TOKEN }} - name: Print environment run: | @@ -286,11 +280,10 @@ jobs: path: ./dist/snap/bw-snap-sha256-${{ env.PACKAGE_VERSION }}.txt - # This process seems independent from the others publish_snap: name: Publish Snap runs-on: ubuntu-latest - need: build_snap + needs: build_snap if: github.event_name == 'release' steps: - name: Checkout repo @@ -332,6 +325,7 @@ jobs: # This job is independent: it reruns 'npm run build:prod' + # Could be moved out a level publish_npm: name: Publish NPM runs-on: ubuntu-latest