Skip to content

Commit

Permalink
Updated GH actions workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamKobus committed Jul 25, 2024
1 parent a7dae0f commit f05ce65
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 10 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,19 @@ jobs:
with:
java-version: '17'
distribution: 'temurin'
cache: 'gradle'

- name: Decrypt secrets
run: scripts/decrypt-secrets.sh "${{ secrets.SECRETS_PASSPHRASE }}"

- name: Build project
run: ./gradlew clean :composenav:assembleRelease
uses: gradle/gradle-build-action@v3
with:
arguments: clean :composenav:assembleRelease

- name: Publish to MavenCentral
run: ./gradlew publishReleasePublicationToSonatypeRepository closeAndReleaseSonatypeStagingRepository --max-workers 1
uses: gradle/gradle-build-action@v3
with:
arguments: publishReleasePublicationToSonatypeRepository closeAndReleaseSonatypeStagingRepository --max-workers 1

- name: Clean up secrets
if: always()
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/publish-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,19 @@ jobs:
with:
java-version: '17'
distribution: 'temurin'
cache: 'gradle'

- name: Decrypt secrets
run: scripts/decrypt-secrets.sh "${{ secrets.SECRETS_PASSPHRASE }}"

- name: Build project
run: ./gradlew clean :composenav:assembleRelease
uses: gradle/gradle-build-action@v3
with:
arguments: clean :composenav:assembleRelease

- name: Publish to MavenCentral
run: ./gradlew :composenav:publishReleasePublicationToSonatypeRepository
uses: gradle/gradle-build-action@v3
with:
arguments: :composenav:publishReleasePublicationToSonatypeRepository
env:
MAVEN_SNAPSHOT: true

Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ jobs:
with:
java-version: '17'
distribution: 'temurin'
cache: 'gradle'

- name: Set Up Ruby
uses: ruby/setup-ruby@v1
Expand All @@ -39,7 +38,11 @@ jobs:
DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Run tests
run: ./gradlew testDebugUnitTest
uses: gradle/gradle-build-action@v3
with:
arguments: testDebugUnitTest

- name: Run static analysis
run: ./gradlew ktlintCheck detekt
uses: gradle/gradle-build-action@v3
with:
arguments: ktlintCheck detekt
10 changes: 10 additions & 0 deletions .idea/migrations.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f05ce65

Please sign in to comment.