mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-08 06:48:04 +03:00
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:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user