Skip to content

STARCH-884 node/npm upgrade #6

STARCH-884 node/npm upgrade

STARCH-884 node/npm upgrade #6

Workflow file for this run

# Description
# -----------
# This workflow is intended to run anytime there is a push on a `develop` branch.
name: Develop Branch
on:
push:
branches:
- develop*
workflow_dispatch:
env:
TZ: America/Indianapolis
jobs:
deploy:
if: ( github.event_name == 'workflow_dispatch' || github.event_name == 'push' ) && startsWith(github.ref, 'refs/heads/develop')
name: Verify and Deploy Maven Project
runs-on: [ Linux ]
container:
image: registry.docker.iu.edu/eshr-architecture/ess-build:latest
credentials:
username: ${{ secrets.ESHR_REGISTRY_USERNAME }}
password: ${{ secrets.ESHR_REGISTRY_PASSWORD }}
volumes:
- /opt/actions/cache/m2/repository:/root/.m2/repository
steps:
- name: Clone GitHub repository
uses: actions/checkout@v3
- name: Generate build time configuration
env:
ESSBUILD_VAULT_APPROLE_ROLE_ID_UNT: ${{ secrets.ESSBUILD_VAULT_APPROLE_ROLE_ID_UNT }}
ESSBUILD_VAULT_APPROLE_SECRET_ID_UNT: ${{ secrets.ESSBUILD_VAULT_APPROLE_SECRET_ID_UNT }}
ESSBUILD_VAULT_APPROLE_ROLE_ID_STG: ${{ secrets.ESSBUILD_VAULT_APPROLE_ROLE_ID_STG }}
ESSBUILD_VAULT_APPROLE_SECRET_ID_STG: ${{ secrets.ESSBUILD_VAULT_APPROLE_SECRET_ID_STG }}
ESSBUILD_VAULT_APPROLE_ROLE_ID_REG: ${{ secrets.ESSBUILD_VAULT_APPROLE_ROLE_ID_REG }}
ESSBUILD_VAULT_APPROLE_SECRET_ID_REG: ${{ secrets.ESSBUILD_VAULT_APPROLE_SECRET_ID_REG }}
run: |
generate_build_properties
generate_deploy_properties
- name: Compile, Verify, and Build Javadoc
id: verify
run: |
mvn clean verify -U --batch-mode
- name: Deploy Artifacts
run: |
mvn deploy -DskipTests --batch-mode
- name: Publish Documentation
if: steps.verify.outcome == 'success'
run: |
git config --global --add safe.directory $PWD
if (git fetch origin github_pages)
then
git checkout github_pages
else
git checkout -b github_pages
git push --set-upstream origin github_pages
fi
git pull
rm -rf docs/$GITHUB_REF_NAME
mkdir -p docs/$GITHUB_REF_NAME
for a in $(find -type d -regex '.*/\(apidocs\|jacoco\(-aggregate\)?\)' | cut -b3- | egrep -v '^docs/')
do
t=docs/$GITHUB_REF_NAME/${a%%target*}
mkdir -p $t
mv $a $t
done
if (git add docs && git commit --dry-run)
then
git config user.name eshrastg
git config user.email [email protected]
git commit -m "publish $GITHUB_ACTOR $GITHUB_REF_NAME"
git push
fi