Skip to content

Commit

Permalink
docs: add gh pages deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
samrith-s committed Dec 6, 2023
1 parent 7dd1f03 commit dc2f671
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Docs

on:
push:
branches: [main]
workflow_dispatch:

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

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install, build, and upload your site
uses: withastro/action@v1
with:
path: docs
package-manager: yarn

deploy:
name: 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
2 changes: 2 additions & 0 deletions docs/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import { defineConfig } from "astro/config";

// https://astro.build/config
export default defineConfig({
site: "'https://samrith-s.github.io",
base: "/concurrent-tasks",
markdown: {
shikiConfig: {
theme: "dark-plus",
Expand Down

0 comments on commit dc2f671

Please sign in to comment.