Clean up Java workflow; fix Ruby gem versioning

This commit is contained in:
Wilson Lin 2020-01-19 23:44:05 +11:00
parent 894c5a9d33
commit 1bf6d6015a
3 changed files with 3 additions and 11 deletions

View File

@ -23,10 +23,6 @@ jobs:
FILE: 'libhyperbuild_java.dylib'
steps:
- uses: actions/checkout@v1
- name: Get version
id: version
shell: bash
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/v}
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
@ -50,10 +46,6 @@ jobs:
id: version
shell: bash
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/v}
- name: Get file name
id: file
shell: bash
run: echo ::set-output name=FILE::${{ steps.version.outputs.VERSION }}.jar
- name: Set up JDK
uses: actions/setup-java@v1
with:
@ -92,4 +84,4 @@ jobs:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: us-west-2
run: aws s3 cp ./java/target/hyperbuild-${{ steps.version.outputs.VERSION }}.jar s3://${{ secrets.AWS_S3_BUCKET }}/hyperbuild/bin/${{ steps.file.outputs.FILE }}
run: aws s3 cp ./java/target/hyperbuild-${{ steps.version.outputs.VERSION }}.jar s3://${{ secrets.AWS_S3_BUCKET }}/hyperbuild/bin/${{ steps.version.outputs.VERSION }}.jar

View File

@ -2,7 +2,7 @@ require 'rake'
Gem::Specification.new do |spec|
spec.name = "hyperbuild"
spec.version = "0.0.24",
spec.version = "0.0.24"
spec.authors = ["Wilson Lin"]
spec.email = ["code@wilsonl.in"]
spec.license = "MIT"

View File

@ -61,7 +61,7 @@ for (const f of ["nodejs/package.json"]) {
}
for (const f of ["ruby/hyperbuild.gemspec"]) {
replaceInFile(f, /^(\s*spec\.version\s*=\s*)"\d+\.\d+\.\d+"\s*$/m, `$1"${NEW_VERSION}",`);
replaceInFile(f, /^(\s*spec\.version\s*=\s*)"\d+\.\d+\.\d+"\s*$/m, `$1"${NEW_VERSION}"`);
}
for (const f of ["java/pom.xml"]) {