work in progress on publishing docs
This commit is contained in:
@@ -2,16 +2,12 @@
|
|||||||
name: Deploy static content to Pages
|
name: Deploy static content to Pages
|
||||||
|
|
||||||
on:
|
on:
|
||||||
# Allows you to run this workflow manually from the Actions tab
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
release:
|
push:
|
||||||
types: [published]
|
branches:
|
||||||
|
- main
|
||||||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
|
paths:
|
||||||
permissions:
|
- '_docs/**'
|
||||||
contents: read
|
|
||||||
pages: write
|
|
||||||
id-token: write
|
|
||||||
|
|
||||||
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
|
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
|
||||||
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
|
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
|
||||||
|
|||||||
@@ -0,0 +1,39 @@
|
|||||||
|
name: Update Docs
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
paths:
|
||||||
|
- '_docs/**'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
## Run replacements and cleanups on the docs
|
||||||
|
prepare-docs:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Upload spearhead.lua artifact
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: spearhead-lua
|
||||||
|
path: ./output/spearhead.lua
|
||||||
|
|
||||||
|
build-image:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
|
||||||
|
# Download prepared pages from the previous job
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
- name: Build Docker image for docs
|
||||||
|
run: |
|
||||||
|
docker build -t spearhead-docs ./_docs
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
name: spearhead-docs
|
||||||
|
description: Helm chart for deploying Spearhead documentation
|
||||||
|
type: application
|
||||||
|
version: 1.0.0
|
||||||
|
appVersion: "1.0"
|
||||||
|
keywords:
|
||||||
|
- spearhead
|
||||||
|
- documentation
|
||||||
|
- dcs
|
||||||
|
home: https://git.dutchie031.com/Spearhead/spearhead
|
||||||
|
sources:
|
||||||
|
- https://git.dutchie031.com/Spearhead/Spearhead
|
||||||
|
maintainers:
|
||||||
|
- name: Spearhead Team
|
||||||
|
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
FROM nginx:latest
|
||||||
|
|
||||||
|
COPY ./ /usr/share/nginx/html
|
||||||
Reference in New Issue
Block a user