Merge branch 'Weaverse:main' into main #19
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 | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
permissions: | |
actions: write | |
contents: read | |
jobs: | |
deploy: | |
name: 🚀 Deploy | |
runs-on: ubuntu-latest | |
# needs: [typecheck, quality] | |
# only deploy main/dev branch on pushes | |
if: ${{ github.ref == 'refs/heads/main' && github.event_name == 'push' }} | |
steps: | |
- name: ⬇️ Checkout repo | |
uses: actions/checkout@v4 | |
- name: 👀 Read app name | |
uses: SebRollen/[email protected] | |
id: app_name | |
with: | |
file: fly.toml | |
field: app | |
- name: 🎈 Setup Fly | |
uses: superfly/flyctl-actions/setup-flyctl@master | |
- name: 🚀 Deploy Production | |
if: ${{ github.ref == 'refs/heads/main' }} | |
run: flyctl deploy --remote-only --build-arg COMMIT_SHA=${{ github.sha }} --app ${{ steps.app_name.outputs.value }} | |
env: | |
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} |