-
Notifications
You must be signed in to change notification settings - Fork 3
68 lines (64 loc) · 2.17 KB
/
release.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Build
on:
push:
branches:
- '**'
paths-ignore:
- '.github/ISSUE_TEMPLATE/*.yml'
- '.gitignore'
- 'CONTRIBUTING.md'
- 'LICENSE'
- 'README.md'
- '.devcontainer/**'
- '.vscode/**'
jobs:
release:
runs-on: ubuntu-latest
outputs:
release_id: ${{ steps.release.outputs.releaseID }}
steps:
- name: Set up JDK 17
# See https://github.com/actions/setup-java/commits
uses: actions/setup-java@4075bfc1b51bf22876335ae1cd589602d60d8758
with:
java-version: 17
distribution: temurin
- name: Checkout repository and submodules
# See https://github.com/actions/checkout/commits
uses: actions/checkout@72f2cec99f417b1a1c5e2e88945068983b7965f9
with:
submodules: recursive
- name: Validate Gradle Wrapper
# See https://github.com/gradle/wrapper-validation-action/commits
uses: gradle/wrapper-validation-action@56b90f209b02bf6d1deae490e9ef18b21a389cd4
- name: Build ProxyPass
# See https://github.com/gradle/gradle-build-action/commits
uses: gradle/gradle-build-action@3bfe3a46584a206fb8361cdedd0647b0c4204232
with:
arguments: build
- name: Archive artifact
# See https://github.com/actions/upload-artifact/commits
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32
if: success()
with:
name: ProxyPass
path: build/libs/ProxyPass.jar
if-no-files-found: error
- name: Make release
id: release
uses: Kas-tle/base-release-action@b863fa0f89bd15267a96a72efb84aec25f168d4c
with:
files: |
build/libs/ProxyPass.jar
appID: ${{ secrets.RELEASE_APP_ID }}
appPrivateKey: ${{ secrets.RELEASE_APP_PK }}
discordWebhook: ${{ secrets.DISCORD_WEBHOOK }}
upload-logs:
name: Upload Logs
runs-on: ubuntu-latest
needs: release
steps:
- uses: Kas-tle/release-build-log-action@46873b93db54b63e3d412ff7be96261c3593674c
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
releaseID: ${{ needs.release.outputs.release_id }}