-
Notifications
You must be signed in to change notification settings - Fork 34
45 lines (37 loc) · 1.11 KB
/
docs.yaml
File metadata and controls
45 lines (37 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Generate Documentation
on:
push:
branches:
- master
tags:
- '*'
jobs:
docs:
name: "Generate Project Documentation"
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ['7.2']
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Fetch Tags
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
- name: Install dependencies
run: composer install --prefer-dist --no-interaction
- name: Generate and Push Documentation
uses: docker://php:7.3-cli
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
entrypoint: ./.github/actions/docs/entrypoint.sh
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
BRANCH: gh-pages
FOLDER: .docs