From 25b1fb7f16c81113154d140eaf08b9632a89f979 Mon Sep 17 00:00:00 2001 From: Kono Tyran Date: Sat, 18 May 2024 22:53:28 -0700 Subject: [PATCH] enable auto-publishing of snapshots via workflows --- .github/workflows/maven-publish.yml | 2 +- .github/workflows/maven.yml | 13 ++++--------- 2 files changed, 5 insertions(+), 10 deletions(-) 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 }}