ci: publish documentation to Gitea Pages
Build and Deploy Documentation / build (push) Failing after 19s
Build and Deploy Documentation / build (push) Failing after 19s
This commit is contained in:
+17
-37
@@ -23,46 +23,26 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
version: 9
|
version: 9
|
||||||
|
|
||||||
- name: Get pnpm store directory
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
- name: Cache pnpm dependencies
|
|
||||||
uses: actions/cache@v4
|
|
||||||
with:
|
|
||||||
path: ${{ env.STORE_PATH }}
|
|
||||||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-pnpm-store-
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install --frozen-lockfile
|
run: pnpm install --frozen-lockfile
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: pnpm build
|
run: pnpm build
|
||||||
|
|
||||||
- name: Upload build artifact
|
- name: Publish to Pages
|
||||||
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
if: gitea.event_name == 'push' && gitea.ref == 'refs/heads/main'
|
||||||
uses: actions/upload-artifact@v4
|
shell: bash
|
||||||
with:
|
run: |
|
||||||
name: docusaurus-build
|
set -euo pipefail
|
||||||
path: build/
|
ORG_REPO='${{ gitea.repository }}'
|
||||||
retention-days: 7
|
case "$ORG_REPO" in
|
||||||
|
*/*) ;;
|
||||||
# Uncomment when deployment target is configured
|
*) echo "invalid repository slug: $ORG_REPO" >&2; exit 1 ;;
|
||||||
# deploy:
|
esac
|
||||||
# needs: build
|
case "$ORG_REPO" in
|
||||||
# runs-on: ubuntu-latest
|
*..*|/*|*/|*//* ) echo "unsafe repository slug: $ORG_REPO" >&2; exit 1 ;;
|
||||||
# if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
esac
|
||||||
# steps:
|
test -f build/index.html
|
||||||
# - name: Download build artifact
|
destination="/gondor-v1-gitea-pages/$ORG_REPO"
|
||||||
# uses: actions/download-artifact@v4
|
mkdir -p "$destination"
|
||||||
# with:
|
rsync -a --delete build/ "$destination/"
|
||||||
# name: docusaurus-build
|
|
||||||
# path: build/
|
|
||||||
#
|
|
||||||
# - name: Deploy to server
|
|
||||||
# run: |
|
|
||||||
# # Add deployment steps here (rsync, docker, etc.)
|
|
||||||
# echo "Deploying documentation..."
|
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ const config: Config = {
|
|||||||
tagline: 'Autonomous application documentation',
|
tagline: 'Autonomous application documentation',
|
||||||
favicon: 'img/favicon.ico',
|
favicon: 'img/favicon.ico',
|
||||||
|
|
||||||
url: 'https://docs.skic-playground.lego-cloud.eu',
|
url: 'https://pages.apps.lego-cloud.eu',
|
||||||
baseUrl: '/',
|
baseUrl: '/skic-v1-playground/documentation/',
|
||||||
|
|
||||||
organizationName: 'skic-v1-playground',
|
organizationName: 'skic-v1-playground',
|
||||||
projectName: 'documentation',
|
projectName: 'documentation',
|
||||||
|
|||||||
Reference in New Issue
Block a user