Skip to content

Commit

Permalink
Updated github action
Browse files Browse the repository at this point in the history
  • Loading branch information
YauhenDaresay committed May 15, 2024
1 parent 0d45904 commit 1954486
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/publish_to_maven_central.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: Code checks on Pull Request
on: push
jobs:
build:
name: Publish to Maven Central Repository
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
34 changes: 34 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Code checks on Pull Request
on:
push:
branches:
- 'main'
- 'dev'
workflow_dispatch:
pull_request:
branches:
- 'master'
- 'release/**'
- 'dev'
jobs:
build:
name: Code checks on Pull Request
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Setup variables in local.properties
run: |
echo "signing_keyId=${{secrets.SIGNING_KEY_ID}}" > local.properties
echo "signing_password=${{secrets.SIGNING_PASSWORD}}" >> local.properties
echo "username=${{secrets.MAVEN_CENTRAL_USER_NAME}}" >> local.properties
echo "password=${{secrets.MAVEN_CENTRAL_PASSWORD}}" >> local.properties
- name: Setup gpg private key
run: |
echo "${{secrets.GPG_PRIVATE_KEY}}" > maven-secret-key.asc
- name: Run unit tests
run: ./gradlew test

0 comments on commit 1954486

Please sign in to comment.