Skip to content

Commit

Permalink
Fix PR and snapshot versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
lukebemish committed Nov 18, 2023
1 parent 2d462c1 commit ec78282
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,13 @@ jobs:
id: build
run: |
./gradlew build
env:
PR_NUMBER: ${{ github.event.pull_request.number }}
- name: Publish
run: |
./gradlew publish
env:
PR_NUMBER: ${{ github.event.pull_request.number }}
- name: Archive publishable artifacts
uses: actions/upload-artifact@v3
with:
Expand All @@ -32,6 +36,8 @@ jobs:
- name: Test
run: |
./gradlew test
env:
PR_NUMBER: ${{ github.event.pull_request.number }}
- name: Upload Test Report
uses: actions/upload-artifact@v3
if: (success() || failure()) && steps.build.conclusion == 'success'
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
id: build
run: |
./gradlew build
env:
SNAPSHOT_MAVEN_URL: https://maven.lukebemish.dev/snapshots/
- name: Publish
run: |
./gradlew publish
Expand All @@ -33,6 +35,8 @@ jobs:
- name: Test
run: |
./gradlew test
env:
SNAPSHOT_MAVEN_URL: https://maven.lukebemish.dev/snapshots/
- name: Upload Test Report
uses: actions/upload-artifact@v3
if: (success() || failure()) && steps.build.conclusion == 'success'
Expand Down

0 comments on commit ec78282

Please sign in to comment.