From 23c3d61ab7b9655b8c67cfb44011404a763089aa Mon Sep 17 00:00:00 2001 From: a-wing <1@233.email> Date: Thu, 14 Dec 2023 23:21:49 +0800 Subject: [PATCH] feat(infra): add github actions --- .github/workflows/flyio.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/flyio.yml diff --git a/.github/workflows/flyio.yml b/.github/workflows/flyio.yml new file mode 100644 index 0000000..82989f9 --- /dev/null +++ b/.github/workflows/flyio.yml @@ -0,0 +1,18 @@ +name: Deploy to Fly + +on: [push] + +jobs: + deploy: + name: Deploy proxy + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Set flyctl + uses: superfly/flyctl-actions/setup-flyctl@master + - name: Deploy to fly.io + run: flyctl deploy --remote-only + env: + FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} +