Skip to content

Commit

Permalink
Adding release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Devon Stewart committed Feb 5, 2021
1 parent db6fc20 commit 24c28eb
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Release

on:
release:
types:
- released
workflow_dispatch: {}

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 8
- name: print Java version
run: java -version
- name: Build with Maven
run: |
if [[ "$GITHUB_REF" = refs/heads/* ]]; then
export VERSIONING_GIT_BRANCH=${GITHUB_REF#refs/heads/};
elif [[ "$GITHUB_REF" = refs/tags/* ]]; then
export VERSIONING_GIT_TAG=${GITHUB_REF#refs/tags/};
elif [[ "$GITHUB_REF" = refs/pull/*/merge ]]; then
export VERSIONING_GIT_BRANCH=${GITHUB_REF#refs/};
VERSIONING_GIT_BRANCH=${VERSIONING_GIT_BRANCH%/merge};
fi
mvn clean deploy -Possrh --settings settings.xml

0 comments on commit 24c28eb

Please sign in to comment.