Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/documentation-pr-preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Documentation Preview

on:
pull_request:
types:
- opened
- closed
- synchronize
- reopened
paths:
- mkdocs.yml
- docs/**
- .github/workflows/documentation-pr-preview.yml

concurrency:
group: gh-pages

jobs:
deploy-preview:
name: Preview documentation
runs-on: ubuntu-latest

permissions:
contents: write
pull-requests: write

steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Create Documentation Preview
uses: secure-software-engineering/actions/documentation/pr-preview@develop
with:
title: PR ${{ github.event.pull_request.number }} - ${{ github.event.pull_request.title }}
39 changes: 39 additions & 0 deletions .github/workflows/documentation-snapshot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Deploy Documentation Snapshot

on:
push:
branches:
- develop
paths:
- mkdocs.yml
- docs/**
- .github/workflows/documentation-snapshot.yml

concurrency:
group: gh-pages

jobs:
deploy-snapshot:
name: Deploy documentation snapshot
runs-on: ubuntu-latest

permissions:
contents: write

steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Extract Maven Version
id: version
run: |
VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
echo "version=$VERSION" >> $GITHUB_OUTPUT

- name: Deploy Snapshot Documentation
uses: secure-software-engineering/actions/documentation/deployment@develop
with:
name: ${{ steps.version.outputs.version }}
title: ${{ steps.version.outputs.version }}
31 changes: 31 additions & 0 deletions .github/workflows/documentation-stable.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Deploy Stable Documentation

on:
push:
tags:
- '*'

concurrency:
group: gh-pages

jobs:
deploy-stable:
name: Deploy stable documentation
runs-on: ubuntu-latest

permissions:
contents: write

steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
fetch-depth: 0

- name: Deploy Stable Documentation
uses: secure-software-engineering/actions/documentation/deployment@develop
with:
name: ${{ github.ref_name }}
title: ${{ github.ref_name }}
stable: true
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use_directory_urls: false
# Repository info
repo_name: secure-software-engineering/CogniCryptSQPlugin
repo_url: https://github.com/secure-software-engineering/CogniCryptSQPlugin
edit_uri: edit/testing/docs/ # Change to main branch when needed!
edit_uri: edit/main/docs/


# Theme configuration
Expand Down
Loading