diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index f3a05ee..fdc03b3 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -15,6 +15,6 @@ jobs: java-version: '11' distribution: 'temurin' - name: Publish package - run: mvn --batch-mode deploy + run: mvn --batch-mode release:clean release:prepare deploy env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index ee259fe..44be510 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -34,12 +34,7 @@ jobs: - name: Update dependency graph uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6 - - uses: actions/upload-artifact@v4 - with: - # Name of the artifact to upload. - # Optional. Default is 'artifact' - name: Archipelago.MultiClient.Java-SNAPSHOT - - # A file, directory or wildcard pattern that describes what to upload - # Required. - path: target/*-SNAPSHOT.jar + - name: Publish Snapshot + run: mvn --batch-mode deploy + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}