From 9e6956b4e44e6a20bac2644675f17c68385c1df3 Mon Sep 17 00:00:00 2001 From: edotau Date: Wed, 17 Jan 2024 17:07:22 -0800 Subject: [PATCH] cicd --- .github/workflows/gh-deploy.yaml | 9 ++++---- gh-pages.yaml | 38 -------------------------------- 2 files changed, 4 insertions(+), 43 deletions(-) delete mode 100644 gh-pages.yaml diff --git a/.github/workflows/gh-deploy.yaml b/.github/workflows/gh-deploy.yaml index 7b1045ac3..7f6c10b97 100644 --- a/.github/workflows/gh-deploy.yaml +++ b/.github/workflows/gh-deploy.yaml @@ -8,23 +8,22 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2.3.1 + uses: actions/checkout@v3 with: persist-credentials: false - name: Cache - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ${{ github.workspace }}/.next/cache key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }} - name: Install and Build - uses: actions/setup-node@v2 + uses: actions/setup-node@v4 with: - node-version: ${{ matrix.node-version }} + node-version: 20 - run: yarn install - run: yarn build env: CI: true - - run: touch .nojekyll - name: Deploy 🚀 uses: peaceiris/actions-gh-pages@v3 with: diff --git a/gh-pages.yaml b/gh-pages.yaml deleted file mode 100644 index 6d7f2cef8..000000000 --- a/gh-pages.yaml +++ /dev/null @@ -1,38 +0,0 @@ -name: Build and Deploy -on: - push: - branches: - - gh-pages # assuming you want to deploy from the main branch -jobs: - build-and-deploy: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - persist-credentials: true # typically should be true for deployments - - - name: Cache node modules - uses: actions/cache@v3 - with: - path: | - node_modules - .yarn - key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} - - - name: Install Dependencies - uses: actions/setup-node@v4 - with: - node-version: '14' # specify your node version - cache: 'yarn' - - - name: Install and Build - run: | - yarn install - yarn build # ensure this builds to the 'build' directory - - - name: Deploy 🚀 - uses: JamesIves/github-pages-deploy-action@v4 - with: - branch: gh-pages # target branch to deploy to - folder: build # folder to deploy