Skip to content

Rename EudiWalletSDK to EudiWallet #10

Rename EudiWalletSDK to EudiWallet

Rename EudiWalletSDK to EudiWallet #10

Workflow file for this run

name: CI
on:
pull_request:
types: [ opened, reopened ]
push:
jobs:
build-gradle:
name: Build
# Run on external PRs, but not on internal PRs since those will be run by push to branch
runs-on: ubuntu-latest
steps:
- name: Checkout project sources
uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
- name: Build with Gradle Wrapper
uses: gradle/[email protected]
with:
gradle-version: wrapper
arguments: build
publish-to-snapshot:
name: Publish SNAPSHOT to sonatype.org
needs: [ build-gradle ]
# Runs only in main
if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release')) && github.repository_owner == 'eu-digital-identity-wallet'
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout project sources
uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
- name: Publish with Gradle Wrapper
uses: gradle/[email protected]
with:
arguments: publish --full-stacktrace
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ORG_GRADLE_PROJECT_signingKeyId: ${{ secrets.OSSRH_GPG_KEY_ID }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.OSSRH_GPG_SECRET_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.OSSRH_GPG_PASSPHRASE }}
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.OSSRH_USERNAME }}
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.OSSRH_PASSWORD }}
GIT_REF_NAME: ${{ github.ref_name }}