Skip to content

Commit

Permalink
build: migrate CI to setup-gradle v3
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosemoe committed Feb 17, 2024
1 parent 7a53eea commit ad6c3a6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,22 +29,17 @@ jobs:
with:
java-version: 17
distribution: 'temurin'
cache: 'gradle'

- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3

- name: Build debug APK
id: build
uses: gradle/gradle-build-action@v2
with:
arguments: assembleDebug
run: ./gradlew assembleDebug

- name: Publish snapshot
uses: gradle/gradle-build-action@v2
if: ${{ always() && github.event_name != 'pull_request' && github.ref == 'refs/heads/main' && steps.build.outcome == 'success' }}
with:
arguments: publishAllPublicationsToMavenCentral
run: ./gradlew publishAllPublicationsToMavenCentral
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MVN_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MVN_PASSWORD }}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Note that statements in other languages may not be up-to-date.

## Documentation

To quickly getting started, please view
To quickly get started, please view
this [Quickstart Guide](https://project-sora.github.io/sora-editor-docs/guide/getting-started).

To check out all docs, please
Expand Down

0 comments on commit ad6c3a6

Please sign in to comment.