Skip to content

Merge pull request #107 from outfoxx/release.1.6.3 #29

Merge pull request #107 from outfoxx/release.1.6.3

Merge pull request #107 from outfoxx/release.1.6.3 #29

name: Publish Snapshot
on:
push:
branches: [ main ]
permissions:
contents: write
concurrency:
group: publish-snapshot-${{github.ref_name}}
cancel-in-progress: true
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: '11'
distribution: adopt
- name: Build Artifacts & Documentation
uses: gradle/gradle-build-action@v2
with:
arguments: build -x test
- name: Publish Maven Artifacts (Snapshot)
uses: gradle/gradle-build-action@v2
with:
arguments: |
-PsonatypeUsername=${{ secrets.OSSRH_USER }}
-PsonatypePassword=${{ secrets.OSSRH_PASS }}
publish -x test
- name: Publish Documentation
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
clean: false
folder: build/javadoc