-
Notifications
You must be signed in to change notification settings - Fork 29
42 lines (40 loc) · 1.09 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
name: publish
on:
push:
tags:
- "v*.*.*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v2
- name: validate gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: setup jdk 21
uses: actions/setup-java@v1
with:
java-version: 21
- name: make gradle wrapper executable
run: chmod +x ./gradlew
- name: build and generate javadoc
run: |
./gradlew build
./gradlew javadoc
- name: Create hash
uses: BlueZeeKing/fabric-mod-hash@v1.1
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
./build/libs/factions-mc*.*.*-*.*.*[0-9].jar
./build/libs/factions-mc*.*-*.*.*[0-9].jar
./*.sha512
draft: true
- name: Deploy javadoc
uses: crazy-max/ghaction-github-pages@v3
with:
target_branch: gh-pages
build_dir: build/docs/javadoc
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}