From af794f7cbb35455e2c6c087b14c16e9d69ab3082 Mon Sep 17 00:00:00 2001 From: Silvio Giebl Date: Mon, 16 Oct 2023 11:47:25 +0200 Subject: [PATCH] Update GitHub workflows --- .github/workflows/check.yml | 5 +++++ .github/workflows/releaseExtension.yml | 8 +------- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 99d3828..4f40c81 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -14,5 +14,10 @@ jobs: distribution: temurin java-version: 11 cache: gradle + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_TOKEN }} - name: Check run: ./gradlew check diff --git a/.github/workflows/releaseExtension.yml b/.github/workflows/releaseExtension.yml index fd00c31..4ab4752 100644 --- a/.github/workflows/releaseExtension.yml +++ b/.github/workflows/releaseExtension.yml @@ -18,18 +18,12 @@ jobs: cache: gradle - name: Build Zip run: ./gradlew hivemqExtensionZip - - name: Get release - id: get_release - uses: bruceadams/get-release@v1.3.2 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Upload Release Asset - id: upload-release-asset uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - upload_url: ${{ steps.get_release.outputs.upload_url }} + upload_url: ${{ github.event.release.upload_url }} asset_path: ./build/hivemq-extension/hivemq-influxdb-extension-${{ github.event.release.name }}.zip asset_name: hivemq-influxdb-extension-${{ github.event.release.name }}.zip asset_content_type: application/zip