Skip to content

Commit

Permalink
foo3
Browse files Browse the repository at this point in the history
  • Loading branch information
popematt committed Nov 10, 2022
1 parent 48c3586 commit 2e491ff
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 9 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ jobs:
with:
distribution: 'corretto'
java-version: ${{ matrix.java }}
- run: ./gradlew build
- uses: gradle/gradle-build-action@v2
with:
arguments: build
- run: ./ion-test-driver-run version

check-version:
Expand Down Expand Up @@ -55,7 +57,9 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 11
- run: ./gradlew check
- uses: gradle/gradle-build-action@v2
with:
arguments: check
- uses: codecov/codecov-action@v1
with:
file: build/reports/jacoco/test/jacocoTestReport.xml
18 changes: 12 additions & 6 deletions .github/workflows/publish-release-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,14 @@ jobs:
submodules: recursive
- name: get tag version
run: echo "RELEASE_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- name: get library version
- name: Get library version
run: |
echo "LIBRARY_VERSION=$(./gradlew properties | grep version | sed 's/version: /v/')" >> $GITHUB_ENV
- name: validate library version matches tag
- name: Validate project version matches tag
shell: bash
run: |
echo "Project Version: $PROJECT_VERSION"
echo "Release Tag: $RELEASE_TAG"
[ "$LIBRARY_VERSION" = "$RELEASE_TAG" ]
publish-to-github-release:
# only run if `check-tag` completes successfully
Expand All @@ -45,15 +47,19 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: recursive
- run: ./gradlew build
- uses: gradle/gradle-build-action@v2
with:
arguments: build
- name: set env
run: echo "RELEASE_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- uses: actions/checkout@v3
- name: Upload Jar to GitHub release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# TODO - reusability
# the location of the library(s) should be configurable as an input
# parameter rather than being hard coded as `build/lib/*`
run: gh release upload "$RELEASE_TAG" build/lib/*
# parameter rather than being hard coded as `build/lib/ion-java...`
# It should also be able to upload more than one file.
run: |
VERSION=$(./gradlew properties | grep version | sed 's/version: /v/')
gh release upload "$RELEASE_TAG" "build/lib/ion-java-$VERSION.jar"
# TODO: Add `publish-to-maven-central` job
2 changes: 1 addition & 1 deletion project.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.9.10
1.9.11

0 comments on commit 2e491ff

Please sign in to comment.