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 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