From 422f6d64fd05c8b5cb05ffc27647000147e839db Mon Sep 17 00:00:00 2001 From: tac0turtle Date: Mon, 13 Apr 2026 11:45:55 +0200 Subject: [PATCH 1/2] feat(add github pages support): github pages support --- .github/workflows/deploy.yml | 39 ++++++++++++++++++++++++++++++++++++ astro.config.mjs | 2 +- public/CNAME | 1 + 3 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/deploy.yml create mode 100644 public/CNAME diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..f996450 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,39 @@ +name: Deploy to GitHub Pages + +on: + push: + branches: [main] + workflow_dispatch: + +permissions: + contents: write + +concurrency: + group: pages-deploy + cancel-in-progress: true + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: 20 + + - name: Install dependencies + run: npm install + + - name: Build + run: npm run build + + - name: Deploy to gh-pages + uses: peaceiris/actions-gh-pages@v4 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./dist + publish_branch: gh-pages + cname: ev.xyz diff --git a/astro.config.mjs b/astro.config.mjs index 92310bf..9befa12 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -3,7 +3,7 @@ import react from '@astrojs/react' import sitemap from '@astrojs/sitemap' export default defineConfig({ - site: 'https://evolve.com', + site: 'https://ev.xyz', output: 'static', integrations: [react(), sitemap()] }) diff --git a/public/CNAME b/public/CNAME new file mode 100644 index 0000000..c100d8a --- /dev/null +++ b/public/CNAME @@ -0,0 +1 @@ +ev.xyz From f390011c044990a17822311797446eccd42c3a16 Mon Sep 17 00:00:00 2001 From: tac0turtle Date: Mon, 13 Apr 2026 11:49:05 +0200 Subject: [PATCH 2/2] feat(bump node version): bump node version --- .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 f996450..2bc1302 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -22,7 +22,7 @@ jobs: - name: Setup Node uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 - name: Install dependencies run: npm install