From 29f7912582a87f8a802c39702367af4d8a3d577a Mon Sep 17 00:00:00 2001 From: Tomek Marciniak Date: Sat, 31 Aug 2024 22:32:40 +0200 Subject: [PATCH] feat: add deployment to gh pages --- .github/workflows/gh-deploy.yml | 33 +++++++++++++++++++++++++++++++++ astro.config.mjs | 4 +++- public/CNAME | 1 + 3 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/gh-deploy.yml create mode 100644 public/CNAME diff --git a/.github/workflows/gh-deploy.yml b/.github/workflows/gh-deploy.yml new file mode 100644 index 0000000..bd51b04 --- /dev/null +++ b/.github/workflows/gh-deploy.yml @@ -0,0 +1,33 @@ +name: Deploy to GitHub Pages + +on: + push: + branches: [main] + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout your repository using git + uses: actions/checkout@v4 + - name: Install, build, and upload your site + uses: withastro/action@v2 + with: + package-manager: bun + + 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@v4 diff --git a/astro.config.mjs b/astro.config.mjs index 1886bb6..6838d02 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -4,5 +4,7 @@ import tailwind from "@astrojs/tailwind"; // https://astro.build/config export default defineConfig({ - integrations: [tailwind()], + site: "https://palladians.github.io", + base: "xyz", + integrations: [tailwind()], }); diff --git a/public/CNAME b/public/CNAME new file mode 100644 index 0000000..9784a28 --- /dev/null +++ b/public/CNAME @@ -0,0 +1 @@ +palladians.xyz