From 18c675254e91489812e82748feff4c1ad83e4b90 Mon Sep 17 00:00:00 2001 From: Muntean-Alin Date: Tue, 23 Jan 2024 10:15:46 +0200 Subject: [PATCH 1/2] feat:add workflows for deploy --- .github/workflows/deploy_astro.yml | 31 ++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/deploy_astro.yml diff --git a/.github/workflows/deploy_astro.yml b/.github/workflows/deploy_astro.yml new file mode 100644 index 0000000..a98399d --- /dev/null +++ b/.github/workflows/deploy_astro.yml @@ -0,0 +1,31 @@ +name: Deploy to GitHub Pages + +on: + push: + branches: [ main ] + +permissions: + contents: read + pages: write + id-token: write + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout your repository using git + uses: actions/checkout@v3 + - name: Install, build, and upload your site + uses: withastro/action@v1 + with: + path: . + deploy: + needs: build + runs-on: ubuntu-latest + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v1 From cb5b0a6bf7b71157a0745f22f8db8edf4c01f2fb Mon Sep 17 00:00:00 2001 From: Muntean-Alin Date: Tue, 23 Jan 2024 10:28:06 +0200 Subject: [PATCH 2/2] feat:add astro config for deploy with custom domain --- astro.config.mjs | 1 + public/CNAME | 1 + 2 files changed, 2 insertions(+) create mode 100644 public/CNAME diff --git a/astro.config.mjs b/astro.config.mjs index 0e424c7..55ca4a0 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -4,6 +4,7 @@ import react from "@astrojs/react"; // https://astro.build/config export default defineConfig({ + site: 'https://coderdojo.ai3.ro', integrations: [ tailwind(), react({ diff --git a/public/CNAME b/public/CNAME new file mode 100644 index 0000000..a9cf262 --- /dev/null +++ b/public/CNAME @@ -0,0 +1 @@ +coderdojo.ai3.ro