From 3eab4984eb07f3b7897bc025b445c739224b083a Mon Sep 17 00:00:00 2001 From: nzambello Date: Mon, 21 Feb 2022 15:47:44 +0100 Subject: [PATCH] ci: run deploy on self-hosted runner --- .github/workflows/main.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 72e096b..e7fe7fe 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,17 +8,18 @@ on: jobs: deploy: name: 🚀 Deploy - runs-on: ubuntu-latest + runs-on: self-hosted # only build/deploy main branch on pushes if: ${{ github.ref == 'refs/heads/main' && github.event_name == 'push' }} steps: - - name: ⬇️ Checkout repo + - name: ⬇️ Checkout repo uses: actions/checkout@v2 + with: + path: ../../explit + + - name: ⚒ Build + run: yarn build - name: 🚀 Deploy - uses: superfly/flyctl-actions@1.1 - with: - args: "deploy --remote-only" - env: - FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} + run: pm2 startOrRestart ecosystem.config.js