Skip to content

Commit

Permalink
Release CI/CD process
Browse files Browse the repository at this point in the history
  • Loading branch information
DementevNikita authored Feb 15, 2023
1 parent 555af10 commit 7e77aa6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,25 @@ jobs:
runs-on: ubuntu-latest
concurrency: release
steps:
- uses: actions/checkout@v2
- uses: gradle/wrapper-validation-action@v1
- name: Checkout main branch
uses: actions/checkout@v2

- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1

- name: Set up JDK 8
uses: actions/setup-java@v2
with:
java-version: 8
distribution: 'adopt'
cache: gradle
- name: Build with Gradle
run: ./gradlew build

- name: Build JAR file with Gradle
run: ./gradlew build -Pversion=${{ github.event.release.tag_name }}

- name: Upload files to a GitHub release
uses: svenstaro/[email protected]
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/libs/odd-spark-adapter-${{ steps.build.outputs.version }}.jar
tag: ${{ github.event.release.tag_name }}
1 change: 0 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ plugins {
}

group = 'org.opendatadiscovery'
version = "0.0.1"
sourceCompatibility = '8'

repositories {
Expand Down

0 comments on commit 7e77aa6

Please sign in to comment.