ChestsPlusPlus/.github/workflows/maven.yml

42 lines
998 B
YAML
Raw Normal View History

2022-01-12 21:33:01 +01:00
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Build ChestsPlusPlus
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
2022-01-17 22:41:13 +01:00
create:
tags:
- v*
2022-01-12 21:33:01 +01:00
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'adopt'
2022-01-17 22:20:48 +01:00
2022-01-17 22:25:47 +01:00
- name: Build with Maven
run: mvn -B package --file pom.xml
2022-01-12 23:43:36 +01:00
2022-01-13 00:34:45 +01:00
- name: Upload Release Asset
id: upload-release-asset
uses: softprops/action-gh-release@v1
2022-01-17 22:35:42 +01:00
if: startsWith(github.ref, 'refs/tags/v')
2022-01-13 00:34:45 +01:00
with:
draft: true
generate_release_notes: true
files: |
2022-01-17 23:08:54 +01:00
./Server/plugins/ChestsPlusPlus-*.jar
2022-01-12 23:43:36 +01:00