forked from xa/RetroWrapper
-
Notifications
You must be signed in to change notification settings - Fork 5
50 lines (46 loc) · 1.53 KB
/
publish.yml
File metadata and controls
50 lines (46 loc) · 1.53 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
name: Build on release
on:
push:
# Sequence of patterns matched against refs/tags
tags: 'v*neRd' # Push events to matching v*neRd
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up JDK 7 & 8
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: |
7
8
- name: Install advancecomp
run: sudo apt-get install advancecomp
- name: Install strip-nondeterminism
run: sudo apt-get install strip-nondeterminism
- name: Validate Gradle wrapper
uses: gradle/actions/wrapper-validation@v3
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
cache-disabled: true
- name: Build with Gradle
env:
BUILD_RELEASE: ${{ github.event.release.prerelease == false }}
RELEASE_TAG: ${{ github.ref_name }}
run: ./gradlew build --scan --stacktrace --warning-mode all
- name: Rezip built .jar files to remove directory entries
env:
BUILD_RELEASE: ${{ github.event.release.prerelease == false }}
run: bash removeDirectoryEntries.sh
- name: Draft release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.ref }}
name: Draft release ${{ github.ref }}
body: Replace this text with the description of this release!
draft: true
prerelease: false
files: build/libs/*