Skip to content

Commit

Permalink
enable auto-publishing of snapshots via workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
KonoTyran committed May 19, 2024
1 parent ce63270 commit 25b1fb7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
13 changes: 4 additions & 9 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 25b1fb7

Please sign in to comment.