From 373e93d10a46884ba57ef35a9576f10c60f5d29b Mon Sep 17 00:00:00 2001 From: Justin Fernald Date: Sat, 29 Jun 2024 06:57:10 +0000 Subject: [PATCH] add build and deploy to github pages --- .github/workflows/publish.yaml | 24 ++++++++++++++++++++++++ src/components/base/index.tsx | 1 - 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/publish.yaml delete mode 100644 src/components/base/index.tsx diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..a535d38 --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,24 @@ +name: Build and Deploy +on: + push: + branches: + - main +permissions: + contents: write +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: | + pnpm install --ignore-scripts + pnpm run build + + - name: Deploy 🚀 + uses: JamesIves/github-pages-deploy-action@v4 + with: + folder: dist # The folder the action should deploy. diff --git a/src/components/base/index.tsx b/src/components/base/index.tsx deleted file mode 100644 index ca0b060..0000000 --- a/src/components/base/index.tsx +++ /dev/null @@ -1 +0,0 @@ -export * from './Card';