-
Notifications
You must be signed in to change notification settings - Fork 15
51 lines (49 loc) · 1.32 KB
/
publish.yaml
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
name: Publish
on:
release:
types: [created]
workflow_dispatch:
jobs:
publish-docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
submodules: recursive
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 20
- name: Setup gradle
uses: gradle/gradle-build-action@v2
- name: Upload to Docker
run: make jib
env:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
publish-github:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
submodules: recursive
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 20
- name: Setup gradle
uses: gradle/gradle-build-action@v2
- name: Build zip
run: make distZip
- name: Upload Release
id: upload-release-asset
uses: svenstaro/upload-release-action@v1-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref }}
file: ./build/distributions/*.zip
file_glob: true