-
Notifications
You must be signed in to change notification settings - Fork 42
54 lines (48 loc) · 1.47 KB
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Publish artifacts in Space
on:
release:
types: [ published ]
push:
branches: [ main ]
jobs:
publish-core:
name: Publish Jewel Core
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: zulu
java-version: 17
cache: gradle
- name: Setup Gradle
run: chmod +x gradlew
- name: Run Gradle
# supported.ij.version is needed here for project configuration and won't be used during publishing
run: ./gradlew publishMainPublicationToSpaceRepository -Psupported.ij.version=232
env:
MAVEN_SPACE_USERNAME: ${{secrets.MAVEN_SPACE_USERNAME}}
MAVEN_SPACE_PASSWORD: ${{secrets.MAVEN_SPACE_PASSWORD}}
publish-ide:
name: Publish Jewel IDE part
needs: publish-core
runs-on: ubuntu-latest
strategy:
matrix:
supported-ij-version:
- 232
- 233
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: zulu
java-version: 17
cache: gradle
- name: Setup Gradle
run: chmod +x gradlew
- name: Run Gradle
run: ./gradlew publishIdeMainPublicationToSpaceRepository -Psupported.ij.version=${{ matrix.supported-ij-version }}
env:
MAVEN_SPACE_USERNAME: ${{secrets.MAVEN_SPACE_USERNAME}}
MAVEN_SPACE_PASSWORD: ${{secrets.MAVEN_SPACE_PASSWORD}}