Skip to content

build(deps): bump aws-sdk.version from 1.12.631 to 1.12.632 (#1688) #17

build(deps): bump aws-sdk.version from 1.12.631 to 1.12.632 (#1688)

build(deps): bump aws-sdk.version from 1.12.631 to 1.12.632 (#1688) #17

Workflow file for this run

name: Build and Deploy
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: aws-athena-query-federation_ubuntu-latest_16-core
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: '11'
- name: Build Javadoc with Maven
run: mvn -B javadoc:aggregate --file pom.xml
- name: Switch to gh-pages branch
run: |
git fetch
git checkout gh-pages
- name: Remove old files
run: rm -rf com
- name: Copy new files
run: cp -r target/site/apidocs/* .
- name: Commit files
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
#add any untracked files in the com dir
git add com
#commit only if there is a diff
git diff-index --quiet HEAD || git commit -m "Syncing javadoc from master:$GITHUB_SHA" -a
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages