Skip to content

Make snapshot and deploy #361

Make snapshot and deploy

Make snapshot and deploy #361

# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Make snapshot and deploy
on:
push:
branches:
- main
- 'release/**'
schedule:
- cron: '0 2 * * *'
jobs:
publish:
if: github.repository == 'eclipse-store/store'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Java for publishing to Maven Central Snapshot Repository
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: 'maven'
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Make a snapshot from Main branch
run: mvn -Pdeploy -Pproduction --no-transfer-progress --batch-mode clean deploy -U
env:
MAVEN_USERNAME: ${{ secrets.CENTRAL_SONATYPE_TOKEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.CENTRAL_SONATYPE_TOKEN_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.ORG_GPG_PASSPHRASE }}
MAVEN_GPG_KEY: ${{ secrets.ORG_GPG_PRIVATE_KEY }}