From a3b74068e5883c91a537dce3e66448fe3abbd058 Mon Sep 17 00:00:00 2001 From: Kenrick Date: Sat, 27 Aug 2022 13:13:50 +0800 Subject: [PATCH] Setup deploy on Fly --- .github/workflows/{app-deploy.yml => deploy.yml} | 13 ++++++++++++- .github/workflows/{nodejs.yml => test.yml} | 0 2 files changed, 12 insertions(+), 1 deletion(-) rename .github/workflows/{app-deploy.yml => deploy.yml} (71%) rename .github/workflows/{nodejs.yml => test.yml} (100%) diff --git a/.github/workflows/app-deploy.yml b/.github/workflows/deploy.yml similarity index 71% rename from .github/workflows/app-deploy.yml rename to .github/workflows/deploy.yml index 44fff24..b412068 100644 --- a/.github/workflows/app-deploy.yml +++ b/.github/workflows/deploy.yml @@ -5,7 +5,7 @@ on: branches: [ master ] jobs: - deploy: + deploy-gh-pages: runs-on: ubuntu-latest @@ -29,3 +29,14 @@ jobs: with: branch: gh-pages folder: app/dist + + deploy-fly: + + runs-on: ubuntu-latest + env: + FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} + + steps: + - uses: actions/checkout@v3 + - uses: superfly/flyctl-actions/setup-flyctl@master + - run: flyctl deploy --remote-only diff --git a/.github/workflows/nodejs.yml b/.github/workflows/test.yml similarity index 100% rename from .github/workflows/nodejs.yml rename to .github/workflows/test.yml