From 4caf0cac7fa005b8593591bc770996edbb0647e3 Mon Sep 17 00:00:00 2001 From: jinkang-0 Date: Thu, 11 Jan 2024 19:50:28 -0800 Subject: [PATCH] update deployment configs --- .github/workflows/deploy.yml | 22 ++++++++++++++++------ astro.config.mjs | 3 ++- public/CNAME | 1 - 3 files changed, 18 insertions(+), 8 deletions(-) delete mode 100644 public/CNAME diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c6384a5..f9e57e7 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -20,12 +20,22 @@ jobs: steps: - name: Checkout your repository using git uses: actions/checkout@v3 - - name: Install, build, and upload your site - uses: withastro/action@v1 - # with: - # path: . # The root location of your Astro project inside the repository. (optional) - # node-version: 18 # The specific version of Node that should be used to build your site. Defaults to 18. (optional) - # package-manager: pnpm@latest # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional) + + - name: Use Node.js 18 + uses: actions/setup-node@v4 + with: + node-version: '18' + + - name: Install dependencies + run: npm ci + + - name: Build Astro + run: npm run build --if-present + + - name: Upload artifact + uses: actions/upload-pages-artifact@v1 + with: + path: ./dist deploy: needs: build diff --git a/astro.config.mjs b/astro.config.mjs index 6ec7160..5ea3bab 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -5,5 +5,6 @@ import react from "@astrojs/react"; // https://astro.build/config export default defineConfig({ integrations: [react()], - site: 'https://hackforimpact.calblueprint.org' + site: 'https://calblueprint.github.io', + base: 'hack-for-impact' }); diff --git a/public/CNAME b/public/CNAME deleted file mode 100644 index d76e101..0000000 --- a/public/CNAME +++ /dev/null @@ -1 +0,0 @@ -hackforimpact.calblueprint.org \ No newline at end of file