Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maintenance and fixes for release action #5

Merged
merged 6 commits into from
Oct 28, 2022
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
Expand All @@ -23,12 +23,12 @@ jobs:
run: ./gradlew -Prelease fatJar
- name: Get current timestamp for release
id: date
run: echo "::set-output name=date::$(date --utc +'%Y-%m-%d')"
run: echo "DATE=$(date --utc +'%Y-%m-%d')" >> $GITHUB_OUTPUT
- name: Publish release
uses: ncipollo/release-action@v1
with:
artifacts: build/libs/1PasswordSessionAnalyzerForBurp-main-*.jar
omitBody: true
omitName: true
tag: release-${{ steps.date.outputs.date }}
tag: release-${{ steps.date.outputs.DATE }}
token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
Expand Down
13 changes: 4 additions & 9 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,13 @@ versioning {
}
}

jar {
duplicatesStrategy = 'exclude'
}

version versioning.ext.makeVersion()

task fatJar(type: Jar) {
jar {
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
}
duplicatesStrategy = 'exclude'
archiveBaseName = "${rootProject.name}"
from { configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}

test {
Expand Down