diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 77c20b79..6ff8022c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,6 +12,7 @@ on: options: - Initial Release - Redeploy + - Dry Run jobs: setup: @@ -22,6 +23,7 @@ jobs: branch-name: ${{ steps.branch.outputs.branch-name }} steps: - name: Branch check + if: ${{ github.event.inputs.release_type != 'Dry Run' }} run: | if [[ "$GITHUB_REF" != "refs/heads/rc" ]] && [[ "$GITHUB_REF" != "refs/heads/hotfix" ]]; then echo "===================================" @@ -73,6 +75,7 @@ jobs: run: mv Bitwarden-${{ env.PKG_VERSION }}-universal.pkg Bitwarden-${{ env.PKG_VERSION }}-universal.pkg.archive - name: Create release + if: ${{ github.event.inputs.release_type != 'Dry Run' }} uses: ncipollo/release-action@95215a3cb6e6a1908b3c44e00b4fdb15548b1e09 # v2.8.5 env: PKG_VERSION: ${{ steps.retrieve-version.outputs.package_version }} @@ -151,6 +154,7 @@ jobs: run: ls -alht dist - name: Deploy to Snap Store + if: ${{ github.event.inputs.release_type != 'Dry Run' }} run: | snapcraft upload dist/bitwarden_${{ env._PKG_VERSION }}_amd64.snap --release stable snapcraft logout @@ -184,6 +188,7 @@ jobs: path: ./dist - name: Push to Chocolatey + if: ${{ github.event.inputs.release_type != 'Dry Run' }} shell: pwsh run: | cd dist