-
-
Notifications
You must be signed in to change notification settings - Fork 7
30 lines (30 loc) · 1 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
name: Publish AntiRedstoneClock-Remasterd to platforms
on:
push:
branches:
- master
- develop
jobs:
publish:
name: 'Publish to EldoNexus, Modrinth and Hangar'
# Run on all label events (won't be duplicated) or all push events or on PR syncs not from the same repo
if: github.repository_owner == 'OneLiteFeatherNET'
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v3
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: temurin
cache: gradle
java-version: 21
- name: Publish
env:
HANGAR_SECRET: ${{secrets.HANGAR_KEY}}
MODRINTH_TOKEN: ${{ secrets.MODRINTH_KEY }}
ELDO_USERNAME: "${{ secrets.ELDO_USERNAME }}"
ELDO_PASSWORD: "${{ secrets.ELDO_PASSWORD }}"
run: ./gradlew build modrinth publishAllPublicationsToHangar publish