made jackson a required depencie #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If the version contains the SNAPSHOT suffix it will run publishYdwkPublicationToMavenCentralRepository | |
name: Snapshot | |
on: | |
push: | |
branches: | |
- 'master' | |
jobs: | |
snapshot: | |
name: Create Snapshot | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: Read Version | |
id: read-version | |
run: | | |
version=`cat gradle.properties | sed -n "s/^.*version\s*=\s*\(\S*\).*$/\1/p"` | |
echo "::set-output name=version::$version" | |
- name: Run maven snapshot | |
if: ${{ endsWith(steps.read-version.outputs.version, 'SNAPSHOT') }} | |
run: | | |
./gradlew publishJconfigPublicationToMavenCentralRepository | |
env: | |
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} | |
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} |