Skip to content

Closed the S3 connection #3721

Closed the S3 connection

Closed the S3 connection #3721

Workflow file for this run

name: Publish APIs
on:
push:
branches:
- '*release*'
- 'release/**'
pull_request:
branches:
- 'main'
- 'master'
- '*release*'
- 'release/**'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
build:
if: "contains(toJSON(github.event.commits.*.message), '[run doc]')"
runs-on: ubuntu-20.04
steps:
- name: checkout repo
uses: actions/checkout@v2
- name: Set up JDK 8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Install Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7.7
architecture: x64
- name: Build Scala APIs
run: |
sbt doc
- name: Install PyPI dependencies
run: |
python -m pip install --upgrade pip
cd ./python/docs && pip install -r requirements_doc.txt
- name: Build Python APIs
run: |
cd ./python/docs
make html
- name: Commit changes
id: commit
run: |
git config --local user.email "action@github.com"
git config --local user.name "github-actions"
git add --all
if [-z "$(git status --porcelain)"]; then
echo "::set-output name=push::false"
else
git commit -m "Update Scala and Python APIs" -a
echo "::set-output name=push::true"
fi
shell: bash
- name: Push changes
if: steps.commit.outputs.push == 'true'
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}