generated from LCLPYT/fabric-mod-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (29 loc) · 920 Bytes
/
gradle-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
name: Deployment
on:
push:
tags:
- '*'
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write # required to create a release on the repository
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'temurin'
# validate gradle wrapper signature
- uses: gradle/wrapper-validation-action@v1
# Gradle caching and more
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
# perform the gradle build
- name: Execute Gradle Build
run: ./gradlew build publish github --stacktrace -Porg.gradle.parallel.threads=4
env:
DEPLOY_URL: ${{ secrets.DEPLOY_URL }}
DEPLOY_USER: ${{ secrets.DEPLOY_USER }}
DEPLOY_PASSWORD: ${{ secrets.DEPLOY_PASSWORD }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}