Skip to content

Commit

Permalink
GitHub Action for docs generation + deployment (#106)
Browse files Browse the repository at this point in the history
add GitHub workflow for building and deploying docs
  • Loading branch information
mjaschen authored Dec 7, 2023
1 parent 5e16834 commit 778a55b
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Documentation

on:
push:
branches:
- master
- docs

jobs:

documentation:

runs-on: ubuntu-latest

steps:

- uses: actions/checkout@v4
with:
persist-credentials: false

- name: Setup PHP
uses: shivammathur/[email protected]
with:
php-version: 8.1
extensions: mbstring, dom, intl, iconv

- name: Install Dependencies
run: composer install --prefer-dist --no-progress --no-suggest --dev

- name: Install Daux
run: composer require daux/daux.io:^0.22.0 --prefer-dist --no-progress --no-suggest --dev

- name: Create Build Directory
run: mkdir -p build/daux

- name: Generate Documentation
run: vendor/bin/daux generate -d build/daux

- name: Deploy Documentation Website
uses: AEnterprise/[email protected]
env:
DEPLOY_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
ARGS: "-e -c -r --delete"
SERVER_PORT: 22
FOLDER: "./build/daux/"
SERVER_IP: ${{ secrets.DOCS_REMOTE_HOST }}
USERNAME: ${{ secrets.DOCS_REMOTE_USER }}
SERVER_DESTINATION: ${{ secrets.DOCS_REMOTE_TARGET_PATH }}

0 comments on commit 778a55b

Please sign in to comment.