Skip to content

Commit 13caec1

Browse files
committed
Fixed upload workflow
1 parent 69a9385 commit 13caec1

File tree

1 file changed

+5
-30
lines changed

1 file changed

+5
-30
lines changed

.github/workflows/upload-algorithms.yml

Lines changed: 5 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -3,47 +3,22 @@
33
name: upload-algorithms
44

55
on:
6-
repository_dispatch:
7-
types: manual-publish
86
release:
9-
types: [ created ]
7+
types: [published]
108

119
jobs:
1210
publish:
13-
1411
runs-on: ubuntu-latest
1512

1613
steps:
1714
- name: Checkout
1815
uses: actions/checkout@v4
1916

20-
- name: Set up JDK
21-
uses: actions/setup-java@v4
22-
with:
23-
distribution: 'temurin'
24-
java-version: '21'
25-
cache: 'maven'
26-
27-
- name: Cache Maven packages
28-
uses: actions/cache@v4
29-
with:
30-
path: ~/.m2/repository
31-
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
32-
restore-keys: |
33-
${{ runner.os }}-maven-
34-
35-
- name: Create algorithm zips
36-
if: ${{startsWith(github.ref, 'refs/tags/v') }}
37-
run: |
38-
chmod +x gradlew
39-
./gradlew zipAlgorithms
40-
4117
- name: Add algorithms to release
4218
uses: softprops/action-gh-release@v1
43-
if: ${{startsWith(github.ref, 'refs/tags/v') }}
4419
with:
4520
files: |
46-
target/test-classes/algorithms/cs-*.zip
47-
target/test-classes/algorithms/eod_public-*.zip
48-
target/test-classes/algorithms/pediatric-*.zip
49-
target/test-classes/algorithms/tnm-*.zip
21+
src/test/resources/algorithms/cs-*.zip
22+
src/test/resources/algorithms/eod_public-*.zip
23+
src/test/resources/algorithms/pediatric-*.zip
24+
src/test/resources/algorithms/tnm-*.zip

0 commit comments

Comments
 (0)