-
Notifications
You must be signed in to change notification settings - Fork 30
46 lines (38 loc) · 1.21 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
name: Publish
on: [ workflow_dispatch ]
jobs:
matrix_prep:
uses: ./.github/workflows/matrix_prep.yml
display_versions:
needs: matrix_prep
runs-on: ubuntu-22.04
steps:
- name: display versions
run: echo '${{ needs.matrix_prep.outputs.versions }}' | jq '.include[].version_range[]'
publish:
needs: matrix_prep
runs-on: ubuntu-22.04
strategy:
max-parallel: 1
fail-fast: false
matrix: ${{ fromJson(needs.matrix_prep.outputs.versions) }}
steps:
- name: checkout repository
uses: actions/checkout@v3
- name: setup java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: wrapper validation
uses: gradle/wrapper-validation-action@v1
- name: make gradle wrapper executable
if: ${{ runner.os != 'Windows' }}
run: chmod +x ./gradlew
- name: run publish script
run: python3 publish.py
env:
MC_VERSIONS: ${{ join(matrix.version_range, ',') }}
MAVEN_URL: ${{ secrets.NEW_MAVEN_URL }}
MAVEN_USERNAME: ${{ secrets.NEW_MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.NEW_MAVEN_PASSWORD }}