Skip to content

Commit

Permalink
pull secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
lijamie98 committed Dec 13, 2024
1 parent ae83af4 commit e2e6b1d
Showing 1 changed file with 37 additions and 11 deletions.
48 changes: 37 additions & 11 deletions .github/workflows/on_pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
test_and_build:
runs-on: ubuntu-latest
runs-on: ubuntu-latest-8-cores
steps:
- uses: actions/checkout@v4

Expand All @@ -17,16 +17,42 @@ jobs:
with:
java-version: '11'
distribution: 'adopt'

- name: Check code formatting
run: ./gradlew spotlessCheck || (echo "❌ Your code is not properly formatted. You can run './gradlew spotlessApply' to format it. 👀" && exit 1)

- name: Detekt
run: ./gradlew detekt

- name: Test and build
run: ./gradlew clean build publish

#
# - name: Check code formatting
# run: ./gradlew spotlessCheck || (echo "❌ Your code is not properly formatted. You can run './gradlew spotlessApply' to format it. 👀" && exit 1)
#
# - name: Detekt
# run: ./gradlew detekt

# - name: Test and build
# run: ./gradlew clean build

- name: Test and publish
env:
OSSRH_USER: ${{ secrets.OSSRH_USER }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
GPG_SIGNING_PASSWORD: ${{ secrets.GPG_SIGNING_PASSWORD }}
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}
run: |
echo "OSSRH_USER: ${{ secrets.OSSRH_USER }}"
echo "OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}"
echo "GPG_SIGNING_PASSWORD: ${{ secrets.GPG_SIGNING_PASSWORD }}"
echo "GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}"
./gradlew publish
# - name: test env
# env:
# OSSRH_USER: ${{ secrets.OSSRH_USER }}
# OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
# GPG_SIGNING_PASSWORD: ${{ secrets.GPG_SIGNING_PASSWORD }}
# GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}
# run: |
# echo "OSSRH_USER: $OSSRH_USER"
# echo "OSSRH_PASSWORD: $OSSRH_PASSWORD"
# echo "GPG_SIGNING_PASSWORD: $GPG_SIGNING_PASSWORD"
# echo "GPG_SIGNING_KEY: $GPG_SIGNING_KEY"
#
#
- name: Print test results
if: success() || failure()
run: |
Expand Down

0 comments on commit e2e6b1d

Please sign in to comment.