Skip to content

Commit

Permalink
Deploy to GitHub Pages (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
p0deje authored Oct 31, 2024
1 parent e769605 commit 47e621b
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 3 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Deployment
on:
push:
branches:
- main
workflow_dispatch:

permissions:
contents: read
id-token: write
pages: write

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: yarn
- run: yarn install
- run: yarn build
- uses: actions/upload-pages-artifact@v3
with:
path: dist/

release:
name: Release
needs: build
runs-on: ubuntu-latest
environment:
name: production
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/deploy-pages@v4
id: deployment
8 changes: 5 additions & 3 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
// @ts-check
import { defineConfig } from "astro/config";
import starlight from "@astrojs/starlight";
import { defineConfig } from "astro/config"
import starlight from "@astrojs/starlight"

// https://astro.build/config
export default defineConfig({
// https://docs.astro.build/en/guides/deploy/
site: "https://alumnium.ai",
integrations: [
starlight({
logo: {
Expand All @@ -12,7 +14,7 @@ export default defineConfig({
},
title: "Alumnium",
social: {
github: "https://github.com/p0deje/alumnium",
github: "https://github.com/alumnium-hq/alumnium",
},
sidebar: [
{
Expand Down
1 change: 1 addition & 0 deletions public/CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alumnium.ai

0 comments on commit 47e621b

Please sign in to comment.