Version 0.44.1 #504
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Documentation Deployment.yaml | |
# | |
# This source file is part of the Workspace open source project. | |
# Diese Quelldatei ist Teil des quelloffenen Arbeitsbereich‐Projekt. | |
# https://github.com/SDGGiesbrecht/Workspace#workspace | |
# | |
# Copyright ©2019–2024 Jeremy David Giesbrecht and the Workspace project contributors. | |
# Urheberrecht ©2019–2024 Jeremy David Giesbrecht und die Mitwirkenden des Arbeitsbereich‐Projekts. | |
# | |
# Soli Deo gloria. | |
# | |
# Licensed under the Apache Licence, Version 2.0. | |
# See http://www.apache.org/licenses/LICENSE-2.0 for licence information. | |
name: Documentation Deployment | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
Deployment: | |
name: Deployment | |
runs-on: ubuntu-20.04 | |
container: swift:5.8.0-focal | |
steps: | |
- name: Check out | |
uses: actions/checkout@v3 | |
- name: Cache Workspace | |
uses: actions/cache@v3 | |
with: | |
key: Ubuntu‐${{ hashFiles('.github/workflows/**') }} | |
path: .build/SDG/Workspace | |
- name: Repair Git | |
shell: bash | |
run: | | |
set -x | |
git config --global --add safe.directory '*' | |
- name: Install SwiftPM dependencies | |
shell: bash | |
run: | | |
set -x | |
apt-get update --assume-yes | |
UCF_FORCE_CONFOLD=1 DEBIAN_FRONTEND=noninteractive \ | |
apt-get -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" \ | |
install --assume-yes \ | |
libncurses-dev \ | |
libsqlite3-dev | |
- name: Install Workspace dependencies | |
shell: bash | |
run: | | |
set -x | |
apt-get update --assume-yes | |
UCF_FORCE_CONFOLD=1 DEBIAN_FRONTEND=noninteractive \ | |
apt-get -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" \ | |
install --assume-yes \ | |
curl | |
- name: Refresh | |
shell: bash | |
run: | | |
set -x | |
swift run workspace refresh •language '🇬🇧EN;🇺🇸EN;🇨🇦EN;🇩🇪DE' | |
- name: Document | |
shell: bash | |
run: | | |
set -x | |
swift run workspace validate •job deployment •language '🇬🇧EN;🇺🇸EN;🇨🇦EN;🇩🇪DE' | |
- name: Grant permission to cache | |
shell: bash | |
run: | | |
set -x | |
chmod -R a+rwx . | |
- name: Deploy | |
shell: bash | |
run: | | |
set -x | |
cd docs | |
git init | |
git config user.name "${GITHUB_ACTOR}" | |
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" | |
git add . | |
git commit -m "Generated documentation for ${GITHUB_SHA}." | |
git push --force https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git master:gh-pages | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |