feat(shuttle): allow manually running the deployment job

This commit is contained in:
Orhun Parmaksız 2023-06-23 17:24:51 +03:00
parent 8f8e0caab0
commit 62c461702a
No known key found for this signature in database
GPG Key ID: F83424824B3E4B90
1 changed files with 2 additions and 1 deletions

View File

@ -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