Skip to content

Commit

Permalink
Merge multiple artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
alanocallaghan committed Jul 5, 2024
1 parent dd67782 commit 04ef129
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 20 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
- uses: actions/checkout@v3

- uses: actions/download-artifact@v4
with:
merge-multiple: true

- name: Set up JDK 17
uses: actions/setup-java@v3
Expand Down
34 changes: 14 additions & 20 deletions .github/workflows/publish-snapshot.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: Publish snapshot to SciJava Maven

on:
- push
- workflow_dispatch

jobs:
Expand All @@ -21,25 +20,20 @@ jobs:
with:
merge-multiple: true

- name: Move files
shell: bash
run: |
tree .
# - name: Set up JDK 17
# uses: actions/setup-java@v3
# with:
# java-version: '17'
# distribution: 'temurin'
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'

# - name: Validate Gradle wrapper
# uses: gradle/wrapper-validation-action@v1
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1


# - name: Publish snapshot
# uses: gradle/gradle-build-action@v2
# with:
# arguments: publish
# env:
# MAVEN_USER: ${{ secrets.MAVEN_USER }}
# MAVEN_PASS: ${{ secrets.MAVEN_PASS }}
- name: Publish snapshot
uses: gradle/gradle-build-action@v2
with:
arguments: publish
env:
MAVEN_USER: ${{ secrets.MAVEN_USER }}
MAVEN_PASS: ${{ secrets.MAVEN_PASS }}

0 comments on commit 04ef129

Please sign in to comment.