Skip to content

Merge pull request #38 from go-bazzinga/rupansh/upload-video #23

Merge pull request #38 from go-bazzinga/rupansh/upload-video

Merge pull request #38 from go-bazzinga/rupansh/upload-video #23

name: Deploy to Fly on push to main
on:
workflow_dispatch:
push:
branches:
- main
jobs:
build_check:
uses: ./.github/workflows/build-check.yml
with:
publish-artifact: true
deploy:
name: Deploy
needs: build_check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Download build
uses: actions/download-artifact@v3
with:
name: build-musl
- run: chmod +x target/x86_64-unknown-linux-musl/release/hot-or-not-web-leptos-ssr
- uses: superfly/flyctl-actions/setup-flyctl@master
- name: Set cloudflare token
run: flyctl secrets set CF_TOKEN=$CF_TOKEN --app "hot-or-not-web-leptos-ssr" --stage
env:
CF_TOKEN: ${{ secrets.CLOUDFLARE_STREAM_IMAGES_ANALYTICS_READ_WRITE_SECRET }}
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
- name: Deploy a docker container to Fly.io
run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}