mirror of
https://github.com/darksaid98/Builders-Utilities.git
synced 2026-12-02 06:28:53 +00:00
Deploy via gh actions
This commit is contained in:
4 files changed
+40
-30
No files matched your search
+26
-10
@@ -4,18 +4,34 @@ on: ["pull_request", "push"]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
matrix:
|
||||
java: ["8", "11"]
|
||||
os: ["ubuntu-latest"]
|
||||
runs-on: "${{ matrix.os }}"
|
||||
runs-on: "ubuntu-latest"
|
||||
steps:
|
||||
- name: "Checkout Repository"
|
||||
uses: "actions/[email protected]"
|
||||
- name: "Setup JDK ${{ matrix.java }}"
|
||||
uses: "actions/setup-java@v2"
|
||||
- name : "Grab SHA"
|
||||
uses : "benjlevesque/short-sha@v1.2"
|
||||
id : "short-sha"
|
||||
with :
|
||||
length : "7"
|
||||
- name : "Echo SHA"
|
||||
run : "echo $SHA"
|
||||
env :
|
||||
SHA : "${{ steps.short-sha.outputs.sha }}"
|
||||
- name: "Setup JDK 16"
|
||||
uses: "actions/[email protected]"
|
||||
with:
|
||||
distribution: "adopt"
|
||||
java-version: "${{ matrix.java }}"
|
||||
distribution: "temurin"
|
||||
java-version: "16"
|
||||
- name: Generate versions
|
||||
uses: HardNorth/[email protected]
|
||||
with:
|
||||
version-source: "file"
|
||||
version-file: "gradle.properties"
|
||||
version-file-extraction-pattern: "(?<=version=).+"
|
||||
- name: "Clean Build"
|
||||
run: "./gradlew clean build"
|
||||
run: "./gradlew clean build"
|
||||
- name : Archive Artifacts
|
||||
uses : actions/upload-artifact@v2
|
||||
with :
|
||||
name : Builders-Utilities-${{ env.CURRENT_VERSION }}-${{ env.SHA }}
|
||||
path : build/libs/Builders-Utilities-${{ env.CURRENT_VERSION }}-${{ env.SHA }}.jar
|
||||
Reference in new issue
Block a user