mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-06-12 20:11:03 +00:00
ci(deploy): allow workflow_dispatch to trigger deploy jobs
Enables manual re-deploy via 'gh workflow run quality-gate.yml' without needing a code push. Useful for: redeploy after secret rotation, post- incident recovery, deploy verification.
This commit is contained in:
@@ -81,7 +81,7 @@ jobs:
|
|||||||
name: Bump Version
|
name: Bump Version
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [web, security-audit]
|
needs: [web, security-audit]
|
||||||
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
|
if: github.ref == 'refs/heads/main' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch')
|
||||||
outputs:
|
outputs:
|
||||||
new_version: ${{ steps.bump.outputs.version }}
|
new_version: ${{ steps.bump.outputs.version }}
|
||||||
|
|
||||||
@@ -121,7 +121,7 @@ jobs:
|
|||||||
name: Deploy app.pezkuwichain.io
|
name: Deploy app.pezkuwichain.io
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [bump-version]
|
needs: [bump-version]
|
||||||
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
|
if: github.ref == 'refs/heads/main' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch')
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Download build artifact
|
- name: Download build artifact
|
||||||
@@ -152,7 +152,7 @@ jobs:
|
|||||||
name: Deploy pex.mom
|
name: Deploy pex.mom
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [bump-version]
|
needs: [bump-version]
|
||||||
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
|
if: github.ref == 'refs/heads/main' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch')
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Download build artifact
|
- name: Download build artifact
|
||||||
|
|||||||
Reference in New Issue
Block a user