Skip to content

Commit

Permalink
update github action to use the tag value as release version
Browse files Browse the repository at this point in the history
  • Loading branch information
wise86-android committed Feb 11, 2020
1 parent 554ed4b commit 5da589d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/MakeRelase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/}
- name: Create release Jar
uses: MrRamych/gradle-actions/[email protected]
with:
args: shadowJar
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
args: shadowJar -Pversion=${{ steps.get_version.outputs.VERSION }}
- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand All @@ -34,6 +34,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./PdfColorChanger_${{ steps.get_version.outputs.VERSION }}.jar
asset_name: PdfColorChanger_${{ steps.get_version.outputs.VERSION }}.jar
asset_path: ./PdfColorChanger_v${{ steps.get_version.outputs.VERSION }}.jar
asset_name: PdfColorChanger_v${{ steps.get_version.outputs.VERSION }}.jar
asset_content_type: application/java-archive
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The program will scan the input directory searching for all the pdf file and cre

2. run the program with:
```
java -jar PdfColorChanger_v1.0.0.jar inputDir mappingFile outDir
java -jar PdfColorChanger_v1.1.0.jar inputDir mappingFile outDir
```
**Note:** the output dir must be already present

Expand Down
1 change: 0 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ plugins {
}

group = "org.wise86."
version = "1.0.0"

application{
mainClassName = "MainKt"
Expand Down
3 changes: 2 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
kotlin.code.style=official
kotlin.code.style=official
version=1.1.0

0 comments on commit 5da589d

Please sign in to comment.