Skip to content

CI and deploy steps for docs #35

CI and deploy steps for docs

CI and deploy steps for docs #35

Workflow file for this run

name: Build & Deploy javadoc
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
branches:
# testing only, not allowed to run on OpenLineage/OpenLineage repo
- test-docs-deploy
env:
enabled: ${{ (github.event.pull_request.base.ref == 'test-docs-deploy' && github.repository != 'OpenLineage/OpenLineage' ) }}
jobs:
generate_javadoc:
if: ${{ env.enabled }}

Check failure on line 16 in .github/workflows/docs-deploy.yml

View workflow run for this annotation

GitHub Actions / Build & Deploy javadoc

Invalid workflow file

The workflow is not valid. .github/workflows/docs-deploy.yml (Line: 16, Col: 9): Unrecognized named-value: 'env'. Located at position 1 within expression: env.enabled .github/workflows/docs-deploy.yml (Line: 16, Col: 5): Required property is missing: runs-on
name: "Generate Java docs"
steps:
- uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: '11'
- name: Clear existing javadoc
run: rm -rf website/static/apidocs/javadoc
- name: Generate new java doc
run: |
cd client/java
./gradlew --console=plain javadoc
- name: Copy docs to website directory
run: cp client/java/build/docs/javadoc website/static/apidocs
- name: Commit javadoc to main
run: |
git config user.name github-actions
git config user.email [email protected]
git fetch
git checkout main
git add website/static/apidocs/*
git commit -m "[generated] reloading javadoc"
git push
netlify_deploy:
if: ${{ env.enabled }}
name: 'Deploy to Netlify'
runs-on: ubuntu-latest
needs:
generate_javadoc
steps:
- uses: actions/nifi-deploy-action@v1