Skip to content

Removed OpenUDID completely #82

Removed OpenUDID completely

Removed OpenUDID completely #82

# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Release on Maven Central
on:
push:
tags: '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Maven Central Repository
uses: actions/setup-java@v1
with:
java-version: 1.8
server-id: nexus-staging
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
- name: Set up Git Config
run: |
git config --global user.name "GitHub Actions Bot"
git config --global user.email "github-actions@codenameone.com"
- name: Deploy with Maven
run: |
cat $HOME/.m2/settings.xml
cd maven
bash update-version.sh "$GITHUB_REF_NAME"
export GPG_TTY=$(tty)
xvfb-run -a mvn deploy -Psign-artifacts -Dgpg.passphrase=$MAVEN_GPG_PASSPHRASE
cd ..
git clone https://github.com/shannah/cn1-maven-archetypes
cd cn1-maven-archetypes
bash update-version.sh "$GITHUB_REF_NAME"
xvfb-run -a mvn deploy -Psign-artifacts -Dgpg.passphrase=$MAVEN_GPG_PASSPHRASE
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}