diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml new file mode 100644 index 0000000..ee0e595 --- /dev/null +++ b/.github/workflows/pages.yml @@ -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 diff --git a/_config.yml b/_config.yml new file mode 100644 index 0000000..8b75e80 --- /dev/null +++ b/_config.yml @@ -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"