release-snapshot #77
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
name: release-snapshot | |
on: | |
# Run weekly on sunday at 22:00 UTC (arbitrary) | |
schedule: | |
- cron: '00 22 * * SUN' | |
jobs: | |
release: | |
name: Release on Sonatype OSS | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: develop | |
- name: Set up JDK 1.8 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 1.8 | |
- name: Set up Apache Maven Central | |
uses: actions/setup-java@v1 | |
with: # running setup-java again overwrites the settings.xml | |
java-version: 1.8 | |
server-id: release_artifacts_gradoop | |
server-username: OSSRH_USERNAME | |
server-password: OSSRH_PASSWORD | |
- name: Publish to Snapshot Repository | |
run: mvn clean deploy -DskipTests | |
env: | |
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} | |
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} |