Skip to content

Commit

Permalink
update deploy.console.yaml with workflow_dispatch triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
pjdotson committed Jan 29, 2025
1 parent 56b4d39 commit 21e6ad6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/deploy.console.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
create-release:
name: Create Release
runs-on: ubuntu-latest
if: github.event_name == 'push' && needs.setup.outputs.changed == 'true'
if: (github.event_name == 'push' && needs.setup.outputs.changed == 'true') || github.event_name == 'workflow_dispatch'
needs: setup
env:
VERSION: ${{ needs.setup.outputs.VERSION }}
Expand Down Expand Up @@ -106,7 +106,7 @@ jobs:
build:
name: Build (${{ matrix.os }})
needs: setup
if: needs.setup.outputs.changed == 'true'
if: needs.setup.outputs.changed == 'true' || github.event_name == 'workflow_dispatch'
env:
SYNNAX_TS_ENV: prod
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -123,7 +123,7 @@ jobs:
- name: Import Apple Developer Certificate
# Only notarize on MacOS and on push events, not on PRs. This prevents excessive
# notarization requests and long CI times on PRs.
if: matrix.os == 'macos-latest' && github.event_name == 'push'
if: matrix.os == 'macos-latest' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch')
env:
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}
APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
Expand All @@ -139,7 +139,7 @@ jobs:
- name: Verify Apple Developer Certificate
# Same as above - only notarize on MacOS and on push events, not on PRs
if: matrix.os == 'macos-latest' && github.event_name == 'push'
if: matrix.os == 'macos-latest' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch')
run: |
CERT_INFO=$(security find-identity -v -p codesigning build.keychain | grep "Developer ID Application")
echo "Cert info"
Expand All @@ -160,7 +160,7 @@ jobs:
cache: pnpm

- name: Adjust Auto Updater URL for Release Candidate
if: github.event_name == 'push' && github.ref == 'refs/heads/rc'
if: (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && github.ref == 'refs/heads/rc'
working-directory: console/src-tauri
run: |
jq '.plugins.updater.endpoints = ["https://raw.githubusercontent.com/synnaxlabs/synnax/rc/console/release-spec.json"]' tauri.conf.json > temp.json
Expand Down Expand Up @@ -206,14 +206,14 @@ jobs:
run: pnpm build

- name: Upload MacOS Release Asset
if: github.event_name == 'push' && matrix.os == 'macos-latest'
if: (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && matrix.os == 'macos-latest'
run: |
gh release upload --clobber console-v${{ needs.setup.outputs.VERSION }} ./console/src-tauri/target/release/bundle/macos/Synnax.app.tar.gz
gh release upload --clobber console-v${{ needs.setup.outputs.VERSION }} ./console/src-tauri/target/release/bundle/macos/Synnax.app.tar.gz.sig
gh release upload --clobber console-v${{ needs.setup.outputs.VERSION }} ./console/src-tauri/target/release/bundle/dmg/Synnax_${{ needs.setup.outputs.PURE_VERSION }}_aarch64.dmg
- name: Upload Windows Release Asset
if: github.event_name == 'push' && matrix.os == 'windows-latest'
if: (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && matrix.os == 'windows-latest'
run: |
gh release upload --clobber console-v${{ needs.setup.outputs.VERSION }} ./console/src-tauri/target/release/bundle/msi/Synnax_${{ needs.setup.outputs.PURE_VERSION }}_x64_en-US.msi
gh release upload --clobber console-v${{ needs.setup.outputs.VERSION }} ./console/src-tauri/target/release/bundle/msi/Synnax_${{ needs.setup.outputs.PURE_VERSION }}_x64_en-US.msi.sig
Expand All @@ -223,7 +223,7 @@ jobs:
publish:
name: Publish
runs-on: ubuntu-latest
if: needs.setup.outputs.changed == 'true' && needs.create-release.outputs.release_id != ''
if: (needs.setup.outputs.changed == 'true' && needs.create-release.outputs.release_id != '') || github.event_name == 'workflow_dispatch'
needs: [setup, create-release, build]
env:
VERSION: ${{ needs.setup.outputs.VERSION }}
Expand Down

0 comments on commit 21e6ad6

Please sign in to comment.