Skip to content

Commit dd375d5

Browse files
committed
Fix release workflow to download full target directory (take 2)
1 parent 39698e8 commit dd375d5

File tree

2 files changed

+9
-19
lines changed

2 files changed

+9
-19
lines changed

.github/workflows/build-and-test.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ jobs:
3232
with:
3333
name: macos-natives
3434
path: |
35-
blas/target/native/macos-*/
36-
lapack/target/native/macos-*/
37-
arpack/target/native/macos-*/
35+
*/target/native/macos-*/
3836
if-no-files-found: error
3937

4038
build-jar:
@@ -63,7 +61,7 @@ jobs:
6361
name: macos-natives
6462
path: .
6563
- name: Build
66-
run: mvn --batch-mode compile test-compile process-classes jar:jar
64+
run: mvn --batch-mode package -DskipTests
6765
- name: Log content of jar files
6866
run: |
6967
for module in blas lapack arpack; do
@@ -75,9 +73,7 @@ jobs:
7573
with:
7674
name: target-dir
7775
path: |
78-
blas/target/
79-
lapack/target/
80-
arpack/target/
76+
*/target/
8177
if-no-files-found: error
8278

8379
test-linux:

.github/workflows/release.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ jobs:
3232
with:
3333
name: macos-natives
3434
path: |
35-
blas/target/native/macos-*/
36-
lapack/target/native/macos-*/
37-
arpack/target/native/macos-*/
35+
*/target/native/macos-*/
3836
if-no-files-found: error
3937

4038
build-jar:
@@ -63,7 +61,7 @@ jobs:
6361
name: macos-natives
6462
path: .
6563
- name: Build
66-
run: mvn --batch-mode compile test-compile process-classes jar:jar
64+
run: mvn --batch-mode package -DskipTests
6765
- name: Log content of jar files
6866
run: |
6967
for module in blas lapack arpack; do
@@ -75,9 +73,7 @@ jobs:
7573
with:
7674
name: target-dir
7775
path: |
78-
blas/target/
79-
lapack/target/
80-
arpack/target/
76+
*/target/
8177
if-no-files-found: error
8278

8379
test-linux:
@@ -171,18 +167,16 @@ jobs:
171167
server-password: MAVEN_PASSWORD
172168
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
173169
- name: Publish to Sonatype OSSRH
174-
run: mvn --batch-mode -DskipTests deploy
170+
run: mvn --batch-mode -DskipTests -Dmaven.main.skip -Dmaven.install.skip -Dmaven.antrun.skip=true deploy
175171
env:
176172
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
177173
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
178174
- name: Create Release
179175
id: create_release
180-
uses: actions/create-release@v1
181-
env:
182-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
176+
uses: softprops/action-gh-release@v2
183177
with:
184178
tag_name: ${{ github.ref }}
185-
release_name: ${{ github.ref }}
179+
name: ${{ github.ref }}
186180
draft: true
187181

188182
benchmark:

0 commit comments

Comments
 (0)