diff --git a/.github/workflows/upload_release.yaml b/.github/workflows/upload_release.yaml index d95f137e..886aba16 100644 --- a/.github/workflows/upload_release.yaml +++ b/.github/workflows/upload_release.yaml @@ -18,6 +18,17 @@ jobs: path: ~/.m2/repository key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + - name: Setup GitHub Packages + uses: actions/setup-java@v2 + with: + java-version: 11 + distribution: 'adopt' + + - name: Publish to GitHub Packages + run: mvn --batch-mode -Drevision=${{ github.event.release.tag_name }} -Dsha1= -Dchangelist= clean deploy -Ppublish-github-packages + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Setup Maven Central uses: actions/setup-java@v2 with: @@ -39,13 +50,3 @@ jobs: MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} - - name: Setup GitHub Packages - uses: actions/setup-java@v2 - with: - java-version: 11 - distribution: 'adopt' - - - name: Publish to GitHub Packages - run: mvn --batch-mode -Drevision=${{ github.event.release.tag_name }} -Dsha1= -Dchangelist= clean deploy -Ppublish-github-packages - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}