PHPMailer/.github/workflows/docs.yaml

34 lines
748 B
YAML

name: Docs
on: push
jobs:
build:
name: Build Docs
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Build Docs
uses: ./.github/actions/build-docs
- name: Upload file artifacts
uses: actions/upload-artifact@v1
with:
name: docs
path: docs/
publish:
name: Publish Docs
runs-on: ubuntu-latest
steps:
- name: Download file artifacts
uses: actions/download-artifact@v1
with:
name: docs
- name: Publish Docs to gh-pages
uses: maxheld83/ghpages@v0.2.1
env:
BUILD_DIR: docs/
GH_PAT: ${{ secrets.GH_PAT }}