Skip to content

Commit

Permalink
Merge pull request #3 from boozallen/dev
Browse files Browse the repository at this point in the history
#1 🚚 minor tweaks after moving repo for compliance
  • Loading branch information
d-ryan-ashcraft authored Apr 17, 2024
2 parents 4331f2f + 5896f9d commit 8b5e6e1
Show file tree
Hide file tree
Showing 6 changed files with 345 additions and 168 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# separate terms of service, privacy policy, and support
# documentation.

name: Build Habushu
name: Build Booz Allen Maven Licenses

on:
push:
Expand All @@ -20,19 +20,28 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Setup Pyenv
uses: gabrielfalcao/pyenv-action@v16
- uses: actions/checkout@v4
- name: Install Python # use direct install rather than pyenv for CI for large speed improvement
uses: actions/setup-python@v5
with:
python-version: '3.11.4'
- name: Load cached Poetry installation
id: cached-poetry
uses: actions/cache@v4
with:
path: ~/.local
key: poetry-0 # increment to reset cache
- name: Install Poetry
if: steps.cached-poetry.outputs.cache-hit != 'true'
uses: snok/install-poetry@v1
- name: Set up JDK 11
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
cache: maven
- name: Build habushu-maven-plugin
run: mvn -B install --file pom.xml
- name: Build booz-allen-maven-licenses
run: mvn -B install --file pom.xml -Dhabushu.usePyenv=false

# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
- name: Update dependency graph
Expand Down
56 changes: 56 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# This workflow kicks off the releases a new version of booz-allen-licenses and deploys artifacts to Maven Central.

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Release Booz Allen Licenses

on:
workflow_dispatch:
inputs:
releaseVersion:
description: "Release version"
required: true
developmentVersion:
description: "Next development version"
required: true

jobs:
release:
runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v4
- name: Install Python # use direct install rather than pyenv for CI for large speed improvement
uses: actions/setup-python@v5
with:
python-version: '3.11.4'
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
server-id: 'ossrh'
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg-passphrase: GPG_PASSPHRASE
- name: Release Booz Allen Licenses
run: |
git config --local user.email "[email protected]"
git config --local user.name "Github Actions"
git checkout -b $1-release
mvn -B release:clean release:prepare release:perform -DreleaseVersion=$1 -DdevelopmentVersion=$2
mvn versions:set -DnewVersion=$2 -DgenerateBackupPoms=false
mvn clean install
mvn scm:checkin -Dmessage=":arrow_up: push example modules to version $2"
env:
MAVEN_USERNAME: ${{ secrets.SONATYPE_CENTRAL_REPO_TOKEN_USER }}
MAVEN_PASSWORD: ${{ secrets.SONATYPE_CENTRAL_REPO_TOKEN_KEY }}
GPG_PASSPHRASE: ${{ secrets.GPG_PRIVATE_KEY_PASSPHRASE }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading

0 comments on commit 8b5e6e1

Please sign in to comment.