-
Notifications
You must be signed in to change notification settings - Fork 70
33 lines (31 loc) · 946 Bytes
/
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
name: Compile & Release
on:
push:
paths:
- '**.gradle'
- '**.properties'
- '**/src/**'
- '.github/**'
branches:
- v4
- v5
- v6
- v7
- v8
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Upload to Maven
run: ./gradlew publish modPublish --stacktrace
if: |
!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.pull_request.title, '[ci skip]')
env:
MAVEN_PASS: ${{ secrets.MAVEN_PASS }}
curse_api_key: ${{ secrets.CF_API_KEY }}
modrinth_key: ${{ secrets.MODRINTH_KEY }}