Add GitHub Pages auto-deploy workflow
- Daily deploy at 6:00 AM AST - Triggers on push to main - Jekyll static site with minima theme
This commit is contained in:
parent
def3405e39
commit
b3ebadd9a7
2 changed files with 86 additions and 0 deletions
48
.github/workflows/pages.yml
vendored
Normal file
48
.github/workflows/pages.yml
vendored
Normal file
|
|
@ -0,0 +1,48 @@
|
||||||
|
name: Deploy to GitHub Pages
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
schedule:
|
||||||
|
# Daily at 6:00 AM AST (10:00 UTC)
|
||||||
|
- cron: '0 10 * * *'
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
pages: write
|
||||||
|
id-token: write
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: "pages"
|
||||||
|
cancel-in-progress: false
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup Pages
|
||||||
|
uses: actions/configure-pages@v4
|
||||||
|
|
||||||
|
- name: Build with Jekyll
|
||||||
|
uses: actions/jekyll-build-pages@v1
|
||||||
|
with:
|
||||||
|
source: ./
|
||||||
|
destination: ./_site
|
||||||
|
|
||||||
|
- name: Upload artifact
|
||||||
|
uses: actions/upload-pages-artifact@v3
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
environment:
|
||||||
|
name: github-pages
|
||||||
|
url: ${{ steps.deployment.outputs.page_url }}
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: build
|
||||||
|
steps:
|
||||||
|
- name: Deploy to GitHub Pages
|
||||||
|
id: deployment
|
||||||
|
uses: actions/deploy-pages@v4
|
||||||
38
_config.yml
Normal file
38
_config.yml
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
title: digiDocs
|
||||||
|
description: digiBandit IT Services Documentation
|
||||||
|
url: "https://dbits-db.github.io"
|
||||||
|
baseurl: "/digiDocs"
|
||||||
|
|
||||||
|
# Build settings
|
||||||
|
markdown: kramdown
|
||||||
|
theme: minima
|
||||||
|
|
||||||
|
# Navigation
|
||||||
|
header_pages:
|
||||||
|
- Services/index.md
|
||||||
|
- Products/index.md
|
||||||
|
- Security/index.md
|
||||||
|
- Backup/index.md
|
||||||
|
- Policies/index.md
|
||||||
|
- Legal/index.md
|
||||||
|
- Getting Started/index.md
|
||||||
|
|
||||||
|
# Exclude from processing
|
||||||
|
exclude:
|
||||||
|
- .git
|
||||||
|
- .github
|
||||||
|
- README.md
|
||||||
|
- LICENSE
|
||||||
|
- Gemfile
|
||||||
|
- Gemfile.lock
|
||||||
|
|
||||||
|
# Include hidden files
|
||||||
|
include:
|
||||||
|
- _pages
|
||||||
|
|
||||||
|
# Defaults
|
||||||
|
defaults:
|
||||||
|
- scope:
|
||||||
|
path: ""
|
||||||
|
values:
|
||||||
|
layout: "default"
|
||||||
Loading…
Reference in a new issue