From 598e0ff14804a4a069be46f637e08be3396ffe00 Mon Sep 17 00:00:00 2001 From: Mark Chang <43993825+CyCTW@users.noreply.github.com> Date: Sat, 2 Apr 2022 21:54:30 +0800 Subject: [PATCH 1/2] Create deploy.yml --- .github/workflows/deploy.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..7ddd928 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,20 @@ +name: Build and Deploy +on: [push] +jobs: + build-and-deploy: + concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession. + runs-on: ubuntu-latest + steps: + - name: Checkout 🛎️ + uses: actions/checkout@v3 + + - name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built. + run: | + cd client + yarn install --frozen-lockfile + yarn build + - name: Deploy 🚀 + uses: JamesIves/github-pages-deploy-action@v4.2.5 + with: + branch: gh-pages # The branch the action should deploy to. + folder: build # The folder the action should deploy. From 2174caad50bdd1c7dc7c9abf3b328c08004e8a37 Mon Sep 17 00:00:00 2001 From: Mark Chang <43993825+CyCTW@users.noreply.github.com> Date: Sat, 2 Apr 2022 21:58:10 +0800 Subject: [PATCH 2/2] Update deploy.yml --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 7ddd928..d3cd678 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -17,4 +17,4 @@ jobs: uses: JamesIves/github-pages-deploy-action@v4.2.5 with: branch: gh-pages # The branch the action should deploy to. - folder: build # The folder the action should deploy. + folder: client/build # The folder the action should deploy.