2021-12-04 14:41:26 +01:00
|
|
|
name: Publish
|
2021-06-24 19:19:35 +02:00
|
|
|
on:
|
2021-08-09 21:10:20 +02:00
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- '*'
|
2021-06-24 19:19:35 +02:00
|
|
|
jobs:
|
|
|
|
gradle:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout Commit
|
|
|
|
uses: actions/checkout@v2
|
2021-08-09 21:10:20 +02:00
|
|
|
with:
|
|
|
|
submodules: recursive
|
2021-06-24 19:19:35 +02:00
|
|
|
- name: Fetch Tags
|
|
|
|
run: git fetch --unshallow --tags -f
|
|
|
|
- name: Set up JDK
|
|
|
|
uses: actions/setup-java@v1
|
|
|
|
with:
|
2021-12-04 18:51:35 +01:00
|
|
|
java-version: 17
|
2021-06-24 19:19:35 +02:00
|
|
|
- name: Publish Maven Jar
|
|
|
|
env:
|
|
|
|
ACCESS_KEY: ${{ secrets.ACCESS_KEY }}
|
|
|
|
SECRET_KEY: ${{ secrets.SECRET_KEY }}
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
uses: eskatos/gradle-command-action@v1
|
|
|
|
with:
|
|
|
|
arguments: build publish
|
2021-12-04 14:41:26 +01:00
|
|
|
- name: Publish Modrinth Jar
|
|
|
|
env:
|
|
|
|
MODRINTH_KEY: ${{ secrets.MODRINTH_KEY }}
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
uses: eskatos/gradle-command-action@v1
|
|
|
|
with:
|
2022-06-15 01:12:30 +02:00
|
|
|
arguments: modrinth
|