forked from oraxen/oraxen
-
Notifications
You must be signed in to change notification settings - Fork 2
52 lines (43 loc) · 1.32 KB
/
release-modified.yml
File metadata and controls
52 lines (43 loc) · 1.32 KB
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
46
47
48
49
50
51
52
name: Build
on:
push:
branches: [ "**" ]
schedule:
- cron: "1 0 * * *"
jobs:
build:
name: Build
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Java JDK
uses: actions/setup-java@v3
with:
java-version: 21
distribution: 'zulu'
cache: 'gradle'
- name: Make gradlew executable
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build
- name: Set outputs
id: short_sha
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Get Repository Name
uses: MariachiBear/get-repo-name-action@v1.1.0
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: ${{ steps.repo-name.outputs.repository-name }} ${{ steps.short_sha.outputs.sha_short }}
path: build/libs/*.jar
- name: Create Release
uses: softprops/action-gh-release@v1
with:
name: ${{ steps.repo-name.outputs.repository-name }}
tag_name: ${{ steps.short_sha.outputs.sha_short }}
body: |
This release is automatically compiled by GitHub Actions
files: |
build/libs/*.jar
generate_release_notes: true