From fe1a54f0e1b34fc36506908f66fddea5b817ee3a Mon Sep 17 00:00:00 2001 From: pheralb Date: Sat, 28 Sep 2024 18:54:56 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9A=99=EF=B8=8F=20Prepare=20deploy=20api=20&?= =?UTF-8?q?=20deploy=20app?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy-api.yml | 2 +- .github/workflows/deploy-app.yml | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/deploy-app.yml diff --git a/.github/workflows/deploy-api.yml b/.github/workflows/deploy-api.yml index 2d6e73b..dc17064 100644 --- a/.github/workflows/deploy-api.yml +++ b/.github/workflows/deploy-api.yml @@ -8,7 +8,7 @@ on: jobs: deploy: runs-on: ubuntu-latest - name: Deploy + name: Cloudflare Workers steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/deploy-app.yml b/.github/workflows/deploy-app.yml new file mode 100644 index 0000000..6e8646e --- /dev/null +++ b/.github/workflows/deploy-app.yml @@ -0,0 +1,32 @@ +name: 🚀 Deploy APP + +on: + push: + branches: + - next + +jobs: + build: + runs-on: self-hosted + strategy: + matrix: + node-version: [20] + steps: + - uses: actions/checkout@v4 + + - name: Install pnpm + uses: pnpm/action-setup@v4 + with: + version: 9 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: 'pnpm' + + - name: Install dependencies + run: pnpm install + + - name: Build + run: pnpm build