Skip to content

Commit

Permalink
[Docs] use base docs build process
Browse files Browse the repository at this point in the history
  • Loading branch information
dpfaffenbauer committed Sep 3, 2024
1 parent 9a0ed10 commit 664c8fc
Showing 1 changed file with 12 additions and 46 deletions.
58 changes: 12 additions & 46 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,53 +1,19 @@
name: Docs
name: "Documentation"
on:
pull_request:
paths:
- 'docs/**'
- '.github/workflows/docs.yml'
- 'README.md'
push:
branches: [ '3.0', '3.1', '3.2', 'master' ]
paths:
- 'docs/**'
- '.github/workflows/docs.yml'
- 'README.md'

permissions:
contents: read

jobs:
docs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.4

- name: Setup and Generate
run: |
cd docs
composer install
php vendor/bin/daux generate --destination=generated-docs -s .
- name: Authenticate to Google Cloud
uses: 'google-github-actions/auth@v0'
with:
credentials_json: '${{ secrets.GOOGLE_CREDENTIALS }}'

- name: Upload Folder
uses: 'google-github-actions/upload-cloud-storage@v0'
if: github.ref == 'refs/heads/3.0'
with:
path: 'docs/generated-docs/'
destination: 'cors-wolke-coreshop-docs/3.0.0'
parent: false

- name: Upload Folder
uses: 'google-github-actions/upload-cloud-storage@v0'
if: github.ref == 'refs/heads/3.1'
with:
path: 'docs/generated-docs/'
destination: 'cors-wolke-coreshop-docs/3.1.0'
parent: false

- name: Upload Folder
uses: 'google-github-actions/upload-cloud-storage@v0'
if: github.ref == 'refs/heads/master'
with:
path: 'docs/generated-docs/'
destination: 'cors-wolke-coreshop-docs/3.1.0'
parent: false
uses: coreshop/workflow-collection/.github/workflows/docs.yml@v1

0 comments on commit 664c8fc

Please sign in to comment.