Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
iurysza authored Aug 12, 2021
1 parent a680c1a commit 63f0821
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
jobs:
publish:
name: Release build and publish
runs-on: ubuntu-latest
runs-on: macos-latest
steps:
- name: Check out code
uses: actions/checkout@v2
Expand All @@ -17,22 +17,13 @@ jobs:
with:
distribution: adopt
java-version: 11

- name: Test secrets
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
run: echo $OSSRH_USERNAME
# Builds the release artifacts of the library
- name: Release build
run: ./gradlew :vaccination-tracker:assembleRelease

# Generates other artifacts (javadocJar is optional)
- name: Source jar
run: ./gradlew androidSourcesJar


- name: Gradle Cache
uses: burrunan/gradle-cache-action@v1


# Builds the release artifacts of the library
- name: Build
run: ./gradlew :vaccination-tracker:assembleRelease

# Runs upload, and then closes & releases the repository
- name: Publish to MavenCentral
Expand Down

0 comments on commit 63f0821

Please sign in to comment.