Initial release (testing phase) #1
Workflow file for this run
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: Production Deploy | |
on: | |
release: | |
types: [published] | |
env: | |
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} | |
jobs: | |
# check-for-changes: | |
# runs-on: ubuntu-latest | |
# permissions: | |
# contents: read | |
# outputs: | |
# exitCode: ${{ steps.check.outputs.exitCode }} | |
# steps: | |
# # uses turborepo to check for changes to build dependencies in @biscuits/server | |
# - name: Checkout repository | |
# uses: actions/checkout@v3 | |
# - name: Check for changes | |
# run: npx turbo-ignore @biscuits/server --task=build | |
# id: check | |
# continue-on-error: true | |
deploy: | |
runs-on: ubuntu-latest | |
name: Deploy to production | |
# needs: check-for-changes | |
# if: needs.check-for-changes.outputs.exitCode == '1' | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: superfly/flyctl-actions/setup-flyctl@master | |
- name: Deploy API | |
# deploy the image from ghcr.io for the target sha | |
run: flyctl deploy --image ghcr.io/a-type/biscuits:${{ github.sha }} |