Skip to content

Commit

Permalink
Add github pages rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
garbast committed May 19, 2024
1 parent cf595cb commit ab529d3
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build and Commit Github-Page

on:
workflow_dispatch:

push:
branches: [ develop, main ]

permissions:
contents: write

jobs:
build-and-commit-github-page:
runs-on: ubuntu-latest
concurrency: ci-${{ github.ref }}

steps:
- name: Checkout 🛎️
uses: actions/checkout@v4

- name: Build documentation
run: |
docker run \
--rm --user $(id -u) \
-v ${PWD}:/project \
ghcr.io/typo3-documentation/render-guides:latest render Documentation
echo '<html><head><meta http-equiv="refresh" content="0; url=./Index.html" /></head></html>' > Documentation-GENERATED-temp/index.html
touch Documentation-GENERATED-temp/.nojekyll
- name: Deploy to GitHub Pages 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: Documentation-GENERATED-temp
target-folder: /
clean: true

0 comments on commit ab529d3

Please sign in to comment.