initial public release

This commit is contained in:
Heiko Schaefer 2023-12-13 14:15:58 +01:00
parent ecffecc2ce
commit e913b907d7
No known key found for this signature in database
GPG key ID: DAE9A9050FCCF1EB
129 changed files with 28453 additions and 0 deletions

22
.woodpecker/codespell.yml Normal file
View file

@ -0,0 +1,22 @@
# SPDX-FileCopyrightText: 2023 The "Notes on OpenPGP" project
# SPDX-License-Identifier: CC0-1.0
clone:
git:
image: woodpeckerci/plugin-git
settings:
lfs: false
when:
# branch: main
event:
- push
- pull_request
steps:
codespell:
image: archlinux:latest
commands:
- pacman -Sy --needed --noconfirm archlinux-keyring
- pacman -Syu --needed --noconfirm codespell make
- make -C book codespell

58
.woodpecker/doc-pages.yml Normal file
View file

@ -0,0 +1,58 @@
# SPDX-FileCopyrightText: 2023 The "Notes on OpenPGP" project
# SPDX-License-Identifier: CC0-1.0
steps:
pages:
image: woodpeckerci/plugin-docker-buildx
settings:
output: type=local,dest=public
# do not push, push cannot be used with output simultaneously anyway
dry_run: true
# do not refresh image
pull_image: false
purge: false
pages-pr-preview:
image: bitnami/git
secrets: [ codeberg_token ]
commands:
- git config --global user.email heiko.schaefer+boiler@posteo.de
- git config --global user.name "Page Renderer"
- git clone -b pages https://$CODEBERG_TOKEN@codeberg.org/openpgp/pr-preview.git pr-preview
- rm -rf pr-preview/$CI_COMMIT_PULL_REQUEST
- cp -ar public/. pr-preview/$CI_COMMIT_PULL_REQUEST
- cd pr-preview
- >
if [ -z "$(git status --porcelain)" ]; then
echo "No changes"
else
git add .
git commit -m "Update rendered page" -m "Source: $CI_COMMIT_SHA" -m "See: $CI_BUILD_LINK"
git push
fi
when:
event: pull_request
pages-publish:
image: bitnami/git
secrets: [ codeberg_token ]
commands:
- git config --global user.email heiko.schaefer+boiler@posteo.de
- git config --global user.name "Page Renderer"
- git clone -b pages https://$CODEBERG_TOKEN@codeberg.org/openpgp/site.git $CI_REPO_NAME
- cp -ar public/. $CI_REPO_NAME/book/
# Needed for custom domains
- cp .domains $CI_REPO_NAME || true # Ignore if it doesn't exist
- cd $CI_REPO_NAME
- >
if [ -z "$(git status --porcelain)" ]; then
echo "No changes"
else
git add .
git commit -m "Update rendered page" -m "Source: $CI_COMMIT_SHA" -m "See: $CI_BUILD_LINK"
git push
fi
when:
event: push
# only do releases to the `site` repo for the "main" branch
branch: main

24
.woodpecker/epub.yml Normal file
View file

@ -0,0 +1,24 @@
# SPDX-FileCopyrightText: 2023 The "Notes on OpenPGP" project
# SPDX-License-Identifier: CC0-1.0
clone:
git:
image: woodpeckerci/plugin-git
settings:
lfs: false
when:
# branch: main
event:
- push
- pull_request
steps:
epub-check:
image: archlinux:latest
commands:
- pacman -Sy --needed --noconfirm archlinux-keyring
- pacman -Syu --needed --noconfirm epubcheck inkscape noto-fonts make patch python-myst-parser python-sphinx python-sphinxext-opengraph ttf-montserrat
# fix sphinx: https://github.com/sphinx-doc/sphinx/issues/11598
- patch -Np1 -d /usr/lib/python3.11/site-packages/ -i "$(pwd)/book/patches/sphinx-11766.patch"
- make -C book epub-check

18
.woodpecker/licensing.yml Normal file
View file

@ -0,0 +1,18 @@
# SPDX-FileCopyrightText: 2023 The "Notes on OpenPGP" project
# SPDX-License-Identifier: CC0-1.0
clone:
git:
image: woodpeckerci/plugin-git
settings:
lfs: false
when:
# branch: main
event:
- push
- pull_request
steps:
reuse:
image: fsfe/reuse

23
.woodpecker/links.yml Normal file
View file

@ -0,0 +1,23 @@
# SPDX-FileCopyrightText: 2023 The "Notes on OpenPGP" project
# SPDX-License-Identifier: CC0-1.0
clone:
git:
image: woodpeckerci/plugin-git
settings:
partial: true
lfs: false
when:
# branch: main
event:
- push
- pull_request
steps:
link-check:
image: archlinux:latest
commands:
- pacman -Sy --needed --noconfirm archlinux-keyring
- pacman -Syu --needed --noconfirm inkscape lychee make noto-fonts python-myst-parser python-sphinx python-sphinxext-opengraph ttf-montserrat
- make -C book html-linkcheck