-
-
Notifications
You must be signed in to change notification settings - Fork 20
45 lines (45 loc) · 1.09 KB
/
head.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: head
on:
push:
branches:
- '**'
tags-ignore:
- '*.*'
paths-ignore:
- 'docs/**'
- 'mkdocs.yml'
- '.github/ISSUE_TEMPLATE/*'
- 'CHANGELOG.txt'
pull_request:
branches:
- '**'
tags-ignore:
- '*.*'
paths-ignore:
- 'docs/**'
- 'mkdocs.yml'
- '.github/ISSUE_TEMPLATE/*'
- 'CHANGELOG.txt'
jobs:
build:
runs-on: ubuntu-latest
steps:
- id: vars
run: |
echo "git_hash=${GITHUB_SHA:0:7}" >> $GITHUB_OUTPUT
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
- uses: gradle/actions/setup-gradle@v3
with:
cache-read-only: ${{ github.repository != 'badasintended/wthit' }}
- run: ./gradlew build --max-workers=1
env:
GIT_HASH: ${{ steps.vars.outputs.git_hash }}
- uses: actions/upload-artifact@v4
with:
name: wthit-${{ steps.vars.outputs.git_hash }}
path: "./platform/*/build/libs/**.jar"
- run: ./gradlew --stop