Skip to content

Commit

Permalink
[update_release_system] ci: 👷 remove build job and update publish-gpr…
Browse files Browse the repository at this point in the history
… job to build and upload artifact and relase new version
  • Loading branch information
panaxging committed Jul 5, 2024
1 parent 3488a33 commit c18eb2c
Showing 1 changed file with 3 additions and 44 deletions.
47 changes: 3 additions & 44 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,39 +12,7 @@ permissions:
contents: write

jobs:
build:
name: Build
runs-on: ubuntu-latest
timeout-minutes: 90
strategy:
fail-fast: false

steps:
- name: Environment
run: env | sort

- name: Checkout
uses: actions/checkout@v1
with:
fetch-depth: 1
submodules: true

- name: Setup Java ${{ env.java_version }}
uses: actions/setup-java@v1
with:
java-version: ${{ env.java_version }}
architecture: x64

- name: Compile
run: ./gradlew assemble

- name: Tests
run: ./gradlew check
env:
GRADLE_OPTS: "-Dorg.gradle.daemon=false"

publish-gpr:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -54,15 +22,6 @@ jobs:
java-version: ${{ env.java_version }}
distribution: "temurin"
architecture: x64

- name: build artifacts
run: ./gradlew clean jsonPlugin -x test -P version=${GITHUB_REF#refs/tags/}

- name: Upload artifact and release
uses: softprops/action-gh-release@v2
with:
draft: false
prerelease: false
body_path: CHANGELOG.md
files: |
./plugins/nf-kafka/build/plugin/*

- name: Build and upload artifact and release
run: ./gradlew :plugins:nf-kafka:upload

0 comments on commit c18eb2c

Please sign in to comment.