diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index a95b56e..1272c67 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -22,6 +22,9 @@ jobs: uses: actions/checkout@v3 - name: Install, build, and upload your site output uses: withastro/action@v1 + environment: + ASTRO_SITE: 'https://aboviq.github.io' + ASTRO_BASE: '/emigrate' with: path: ./docs # The root location of your Astro project inside the repository. (optional) node-version: 20 # The specific version of Node that should be used to build your site. Defaults to 18. (optional) diff --git a/docs/astro.config.mjs b/docs/astro.config.mjs index 29f18b1..4738a14 100644 --- a/docs/astro.config.mjs +++ b/docs/astro.config.mjs @@ -1,11 +1,12 @@ +import process from 'node:process'; import { defineConfig } from 'astro/config'; import starlight from '@astrojs/starlight'; import tailwind from '@astrojs/tailwind'; // https://astro.build/config export default defineConfig({ - site: 'https://aboviq.github.io', - base: '/emigrate', + site: process.env.ASTRO_SITE, + base: process.env.ASTRO_BASE, integrations: [ starlight({ title: 'Emigrate', diff --git a/docs/package.json b/docs/package.json index 58534a2..194c96e 100644 --- a/docs/package.json +++ b/docs/package.json @@ -20,5 +20,9 @@ "astro": "^4.0.1", "sharp": "^0.32.5", "tailwindcss": "^3.3.6" - } + }, + "volta": { + "extends": "../../package.json" + }, + "packageManager": "pnpm@8.10.2" }