Adjust workflows for Hurricane branding (#17) #32
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Hurricane | |
on: push | |
jobs: | |
build-job: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Java | |
uses: actions/setup-java@v2 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
cache: 'maven' | |
- name: Prepare NMS 1.17 mappings | |
run: mvn ca.bkaw:paper-nms-maven-plugin:1.2:init -pl :nms-1_17_R1 | |
- name: Prepare NMS 1.18 mappings | |
run: mvn ca.bkaw:paper-nms-maven-plugin:1.2:init -pl :nms-1_18_R1 | |
- name: Prepare NMS 1.18.2 mappings | |
run: mvn ca.bkaw:paper-nms-maven-plugin:1.2:init -pl :nms-1_18_R2 | |
- name: Prepare NMS 1.19.2 mappings | |
run: mvn ca.bkaw:paper-nms-maven-plugin:1.2:init -pl :nms-1_19_R1 | |
- name: Prepare NMS 1.19.3 mappings | |
run: mvn ca.bkaw:paper-nms-maven-plugin:1.2:init -pl :nms-1_19_R2 | |
- name: Build with Maven | |
run: mvn -B package -T 2C | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: spigot/target/Hurricane.jar |