Skip to content

Ios jailbreak bybass detect (#3838) #97

Ios jailbreak bybass detect (#3838)

Ios jailbreak bybass detect (#3838) #97

# 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 }}