Skip to content

Commit

Permalink
Issue #217: Build, Test, and Deploy in one workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ALRubinger committed Mar 9, 2024
1 parent 5972acd commit 6ffb31c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 54 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
name: SDK Kotlin CI
name: Build, Test, and Deploy SNAPSHOT

on:
workflow_dispatch:
inputs:
version:
description: 'Version to publish. For example "1.0.0-SNAPSHOT". If not supplied, will default to version specified in the POM.'
required: false
default: '0.0.0-SNAPSHOT'
push:
branches:
- issue-217/maven-build
Expand Down Expand Up @@ -37,8 +42,23 @@ jobs:
if ! which sha256sum; then brew install coreutils; fi
sha256sum $(find test-vectors -name '*.json') > test-vector-hashes.txt
- name: Run Maven Build
run: mvn --batch-mode verify
- name: Build, Test, and Deploy SNAPSHOT
run: |
if [ -n "${{ github.event.inputs.version }}" ]; then
mvn \
deploy \
--batch-mode \
--settings .maven_settings.xml \
-Dversion=${{ github.event.inputs.version }}
else
mvn \
deploy \
--batch-mode \
--settings .maven_settings.xml
fi
env:
ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }}
ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}

# Upload Web5 Vector test resultsß
- uses: actions/upload-artifact@v3
Expand Down
51 changes: 0 additions & 51 deletions .github/workflows/publish-snapshot.yml

This file was deleted.

0 comments on commit 6ffb31c

Please sign in to comment.