aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/build.yml
diff options
context:
space:
mode:
authorDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2022-07-15 17:05:03 +0200
committerGitHub <noreply@github.com>2022-07-15 17:05:03 +0200
commit9293e2833b01dcb76af85fcb2388a33701dc3ca1 (patch)
tree712c3172fd9b156a244fa948542dd997e7d083b1 /.github/workflows/build.yml
parentafc7e5877903ce925a873c5c9079a69180ce510e (diff)
downloadOneConfig-9293e2833b01dcb76af85fcb2388a33701dc3ca1.tar.gz
OneConfig-9293e2833b01dcb76af85fcb2388a33701dc3ca1.tar.bz2
OneConfig-9293e2833b01dcb76af85fcb2388a33701dc3ca1.zip
Release workflow (#53)
* release workflow * update normal version to hash * fix * fix naming * fix some stuff * fix version thing * switch to number from hash
Diffstat (limited to '.github/workflows/build.yml')
-rw-r--r--.github/workflows/build.yml45
1 files changed, 45 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 0000000..62816b1
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,45 @@
+# Build Workflow
+
+name: Build
+
+on:
+ pull_request:
+ workflow_dispatch:
+ push:
+ branches-ignore:
+ - master
+
+concurrency:
+ group: ${{ github.head_ref || format('{0}-{1}', github.ref, github.run_number) }}
+ cancel-in-progress: true
+
+jobs:
+ build:
+ name: Build
+
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+ with:
+ fetch-depth: 0
+
+ - name: Set up JDK 17
+ uses: actions/setup-java@v2
+ with:
+ java-version: 17
+ distribution: temurin
+ cache: gradle
+
+ - name: Chmod Gradle
+ run: chmod +x ./gradlew
+
+ - name: Build
+ run: ./gradlew build --no-daemon
+
+ - name: Upload Build Artifacts
+ uses: actions/upload-artifact@v2
+ with:
+ name: oneconfig-artifacts
+ path: versions/**/build/libs/