Bump ip from 2.0.0 to 2.0.1 (#34) #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: {} | |
jobs: | |
check-queue-available: | |
name: Check whenever dev.pomu.app is not currently archiving | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check if any streams are currently being archived | |
run: '! curl https://dev.pomu.app/api/queue | jq -r ".[] | select((.scheduledStart | fromdate < now) and (.finished == false))" | grep -q .' | |
deploy: | |
runs-on: ubuntu-latest | |
needs: check-queue-available | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: "Setup `flyctl`" | |
uses: superfly/flyctl-actions/setup-flyctl@master | |
with: | |
version: 0.1.58 | |
- name: Deploy to Dev | |
run: flyctl deploy --remote-only | |
env: | |
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} |