feat(shuttle): allow manually running the deployment job
This commit is contained in:
parent
8f8e0caab0
commit
62c461702a
|
@ -9,6 +9,7 @@ on:
|
|||
- master
|
||||
tags:
|
||||
- "v*.*.*"
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
@ -33,7 +34,7 @@ jobs:
|
|||
- name: Build
|
||||
run: cargo build --locked --verbose
|
||||
- name: Deploy
|
||||
if: startsWith(github.event.ref, 'refs/tags/v')
|
||||
if: ${{ startsWith(github.event.ref, 'refs/tags/v') || github.event_name == 'workflow_dispatch' }}
|
||||
run: |
|
||||
cargo shuttle login --api-key ${{ secrets.SHUTTLE_TOKEN }}
|
||||
cargo shuttle project restart
|
||||
|
|
Loading…
Reference in New Issue