ci: workflow should deploy for server

this might be a footgun in the future, who knows.
I feel like having a dedicated button for "deploy" disguised as "run
workflow" might result in an accidental deploy. ah well.
This commit is contained in:
zkldi
2022-08-18 02:33:46 +01:00
parent cca03d455e
commit cf5b6903f1
+2 -2
View File
@@ -72,7 +72,7 @@ jobs:
defaults:
run:
working-directory: ./server
if: github.event_name == 'push'
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
steps:
- name: Checkout
uses: actions/checkout@v2
@@ -114,7 +114,7 @@ jobs:
defaults:
run:
working-directory: ./server
if: github.event_name == 'push'
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
steps:
- name: Deploy to staging
if: github.ref == 'refs/heads/staging'