forked from asgardeo/thunder
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (45 loc) · 1.59 KB
/
deploy-docs.yml
File metadata and controls
52 lines (45 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# This workflow deploys the Thunder documentation to GitHub Pages
# Uses:
# OS: ubuntu-latest
# Node.js: lts/*
name: 📚 Deploy Documentation
on:
workflow_dispatch:
inputs:
use-artifact:
description: 'Use pre-built docs from artifact (leave empty to build from source)'
required: false
type: string
default: ''
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
deploy-docs:
name: 📚 Deploy Docs to GitHub Pages
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: 📥 Checkout Code
uses: actions/checkout@v4
- name: 📚 Deploy Documentation
uses: ./.github/actions/deploy-docs
with:
docs-artifact-name: ${{ inputs.use-artifact }}
build-docs: ${{ inputs.use-artifact == '' && 'true' || 'false' }}
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: 🎉 Deployment Complete
run: |
echo "# 📚 Documentation Deployment" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "✅ Documentation has been successfully deployed to GitHub Pages!" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "🔗 View the documentation at: https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/" >> $GITHUB_STEP_SUMMARY