Skip to content

Update to 1.21

Update to 1.21 #36

Workflow file for this run

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/[email protected]
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
./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 }}