From 5b7a5cdf6a99ad2cf95997c4d79ebbc325ac2804 Mon Sep 17 00:00:00 2001 From: PleahMaCaka Date: Mon, 30 Oct 2023 12:07:18 +0900 Subject: [PATCH] cd: ? --- .github/workflows/build-and-deploy.yml | 40 ++++++++++++++------------ 1 file changed, 22 insertions(+), 18 deletions(-) diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index 46aa918..4024885 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -50,26 +50,30 @@ jobs: run: pnpm build deploy: - - name: Checkout - uses: actions/checkout@v3 + name: "deploy" + needs: build + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 - - name: Connect deploy key - uses: cloudtype-github-actions/connect@v1 - with: - token: ${{ secrets.CLOUDTYPE_TOKEN }} - ghtoken: ${{ secrets.GHP_TOKEN }} + - name: Connect deploy key + uses: cloudtype-github-actions/connect@v1 + with: + token: ${{ secrets.CLOUDTYPE_TOKEN }} + ghtoken: ${{ secrets.GHP_TOKEN }} - - name: Deploy - uses: cloudtype-github-actions/deploy@v1 - with: - token: ${{ secrets.CLOUDTYPE_TOKEN }} - project: pleahmacaka/ait - stage: main - yaml: | - name: front - app: node@18 - options: - env: + - name: Deploy + uses: cloudtype-github-actions/deploy@v1 + with: + token: ${{ secrets.CLOUDTYPE_TOKEN }} + project: pleahmacaka/ait + stage: main + yaml: | + name: front + app: node@18 + options: + env: - name: NODE_ENV value: production ports: "4173"