Added the Sheepstar Core V1
This commit is contained in:
17
SheepstarCoreV1/.github/workflows/ci.yml
vendored
Normal file
17
SheepstarCoreV1/.github/workflows/ci.yml
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
name: Java CI
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up JDK
|
||||
uses: actions/setup-java@v2
|
||||
with:
|
||||
java-version: '8'
|
||||
distribution: 'adopt'
|
||||
- name: Build with Maven
|
||||
run: mvn --batch-mode --update-snapshots verify
|
42
SheepstarCoreV1/.github/workflows/release.yml
vendored
Normal file
42
SheepstarCoreV1/.github/workflows/release.yml
vendored
Normal file
@ -0,0 +1,42 @@
|
||||
name: Upload the latest sheepstar release
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
create:
|
||||
name: "Creates the newest sheepstar release"
|
||||
runs-on: "ubuntu-latest"
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2.3.4
|
||||
|
||||
- name: Setup java
|
||||
uses: actions/setup-java@v2
|
||||
with:
|
||||
distribution: 'temurin'
|
||||
java-version: '8'
|
||||
|
||||
- name: Build
|
||||
run: "mvn compile assembly:single"
|
||||
|
||||
- name: Create Javadoc
|
||||
run: |
|
||||
mvn javadoc:javadoc
|
||||
zip -r docs.zip ./target/site
|
||||
|
||||
- name: Get version
|
||||
id: get_version
|
||||
run: echo "::set-output name=version::$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' exec:exec)"
|
||||
|
||||
- uses: "marvinpinto/action-automatic-releases@latest"
|
||||
with:
|
||||
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
automatic_release_tag: ${{ steps.get_version.outputs.version }}
|
||||
prerelease: false
|
||||
title: Release ${{ steps.get_version.outputs.version }}
|
||||
files: |
|
||||
./target/*.jar
|
||||
./docs.zip
|
Reference in New Issue
Block a user