Skip to content

Commit

Permalink
foo12
Browse files Browse the repository at this point in the history
  • Loading branch information
popematt committed Nov 10, 2022
1 parent 2e491ff commit cdf44a2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 19 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,6 @@ jobs:
project_version: ${{ env.PROJECT_VERSION }}
- run: |
echo "Result: ${{ toJSON(steps.inspect.outputs) }}"
test:
runs-on: ubuntu-latest
needs: check-version
steps:
- run: |
echo "check-version outputs: ${{ toJSON(needs.check-version.outputs) }}"
echo "Should run = ${{ needs.check-version.outputs.should_create_draft }}"
echo "Should run = ${{ needs.check-version.outputs.should_create_draft == 'true' }}"
create-draft:
name: Create Draft
runs-on: ubuntu-latest
Expand Down
14 changes: 4 additions & 10 deletions .github/workflows/publish-release-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: get tag version
run: echo "RELEASE_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- name: Get library version
run: |
echo "LIBRARY_VERSION=$(./gradlew properties | grep version | sed 's/version: /v/')" >> $GITHUB_ENV
- name: Validate project version matches tag
shell: bash
run: |
RELEASE_TAG=${GITHUB_REF#refs/tags/}
PROJECT_VERSION=$(<project.version)
echo "Project Version: $PROJECT_VERSION"
echo "Release Tag: $RELEASE_TAG"
[ "$LIBRARY_VERSION" = "$RELEASE_TAG" ]
[ "$PROJECT_VERSION" = "$RELEASE_TAG" ] || exit 1
publish-to-github-release:
# only run if `check-tag` completes successfully
needs: check-tag
Expand All @@ -60,6 +55,5 @@ jobs:
# 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"
gh release upload "$RELEASE_TAG" "build/lib/ion-java-$(<project.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.11
1.9.12

0 comments on commit cdf44a2

Please sign in to comment.