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