Skip to content

Commit

Permalink
feat: add deployment to gh pages
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcnk committed Aug 31, 2024
1 parent 8caad6a commit 29f7912
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .github/workflows/gh-deploy.yml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 3 additions & 1 deletion astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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()],
});
1 change: 1 addition & 0 deletions public/CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
palladians.xyz

0 comments on commit 29f7912

Please sign in to comment.