diff --git a/.gitea/workflows/static_pages.yml b/.gitea/workflows/static_pages.yml index b8ede01..e168c79 100644 --- a/.gitea/workflows/static_pages.yml +++ b/.gitea/workflows/static_pages.yml @@ -2,16 +2,12 @@ name: Deploy static content to Pages on: - # Allows you to run this workflow manually from the Actions tab workflow_dispatch: - release: - types: [published] - -# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages -permissions: - contents: read - pages: write - id-token: write + push: + branches: + - main + paths: + - '_docs/**' # 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. diff --git a/.gitea/workflows/update-docs.yml b/.gitea/workflows/update-docs.yml new file mode 100644 index 0000000..3a0dade --- /dev/null +++ b/.gitea/workflows/update-docs.yml @@ -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 + + + \ No newline at end of file diff --git a/.helm/Chart.yaml b/.helm/Chart.yaml new file mode 100644 index 0000000..1c81b9f --- /dev/null +++ b/.helm/Chart.yaml @@ -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 + \ No newline at end of file diff --git a/.helm/templates/deployment.yaml b/.helm/templates/deployment.yaml new file mode 100644 index 0000000..e69de29 diff --git a/.helm/templates/ingress.yaml b/.helm/templates/ingress.yaml new file mode 100644 index 0000000..e69de29 diff --git a/.helm/values.yaml b/.helm/values.yaml new file mode 100644 index 0000000..e69de29 diff --git a/_docs/Dockerfile b/_docs/Dockerfile new file mode 100644 index 0000000..a5d9275 --- /dev/null +++ b/_docs/Dockerfile @@ -0,0 +1,3 @@ +FROM nginx:latest + +COPY ./ /usr/share/nginx/html \ No newline at end of file