From 9681fe5256b7cca4d322af0ef31969895ae56d5c Mon Sep 17 00:00:00 2001 From: YANGDB Date: Wed, 4 Jan 2023 18:53:25 -0800 Subject: [PATCH 1/2] add release-drafter workflow to allow maven publish to nexus Signed-off-by: YANGDB --- .github/workflows/ release-drafter.yml | 43 ++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/ release-drafter.yml diff --git a/.github/workflows/ release-drafter.yml b/.github/workflows/ release-drafter.yml new file mode 100644 index 0000000..f71abc2 --- /dev/null +++ b/.github/workflows/ release-drafter.yml @@ -0,0 +1,43 @@ +name: Release drafter + +# Push events to every tag not containing "/" +on: + push: + tags: + - "*" + +jobs: + draft-a-release: + name: Draft a release + strategy: + matrix: + entry: + - { os: ubuntu-latest, java: 11 } + - { os: windows-latest, java: 11, os_build_args: -x compileJdbc -x jacocoTestReport} + - { os: macos-latest, java: 11, os_build_args: -x compileJdbc -x jacocoTestReport } + - { os: ubuntu-latest, java: 17 } + - { os: windows-latest, java: 17, os_build_args: -x compileJdbc -x jacocoTestReport} + - { os: macos-latest, java: 17, os_build_args: -x compileJdbc -x jacocoTestReport } + java: + - 11 + - 17 + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + - name: Set up JDK ${{ matrix.java }} + uses: actions/setup-java@v3 + with: + java-version: ${{ matrix.java }} + distribution: 'temurin' + cache: gradle + - name: Build with Gradle + run: | + ./gradlew --no-daemon -Dbuild.snapshot=false publishPublishMavenPublicationToLocalRepoRepository && tar -C build -cvf artifacts.tar.gz repository + - name: Draft a release + uses: softprops/action-gh-release@v1 + with: + draft: true + generate_release_notes: true + files: | + artifacts.tar.gz \ No newline at end of file From 40533c5c08374120a93da05e223c7a055416ae8c Mon Sep 17 00:00:00 2001 From: YANGDB Date: Wed, 4 Jan 2023 18:53:25 -0800 Subject: [PATCH 2/2] . Signed-off-by: YANGDB --- .github/workflows/release-drafter.yml | 43 +++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/release-drafter.yml diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 0000000..f71abc2 --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -0,0 +1,43 @@ +name: Release drafter + +# Push events to every tag not containing "/" +on: + push: + tags: + - "*" + +jobs: + draft-a-release: + name: Draft a release + strategy: + matrix: + entry: + - { os: ubuntu-latest, java: 11 } + - { os: windows-latest, java: 11, os_build_args: -x compileJdbc -x jacocoTestReport} + - { os: macos-latest, java: 11, os_build_args: -x compileJdbc -x jacocoTestReport } + - { os: ubuntu-latest, java: 17 } + - { os: windows-latest, java: 17, os_build_args: -x compileJdbc -x jacocoTestReport} + - { os: macos-latest, java: 17, os_build_args: -x compileJdbc -x jacocoTestReport } + java: + - 11 + - 17 + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + - name: Set up JDK ${{ matrix.java }} + uses: actions/setup-java@v3 + with: + java-version: ${{ matrix.java }} + distribution: 'temurin' + cache: gradle + - name: Build with Gradle + run: | + ./gradlew --no-daemon -Dbuild.snapshot=false publishPublishMavenPublicationToLocalRepoRepository && tar -C build -cvf artifacts.tar.gz repository + - name: Draft a release + uses: softprops/action-gh-release@v1 + with: + draft: true + generate_release_notes: true + files: | + artifacts.tar.gz \ No newline at end of file