forked from zaproxy/zaproxy
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (48 loc) · 1.21 KB
/
release-main-version.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
name: Release Main Version
on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'zap/gradle.properties'
jobs:
release:
name: Build and Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 11
- name: Build and Release
env:
INSTALL4J_LICENSE: ${{ secrets.INSTALL4J_LICENSE }}
ZAPBOT_TOKEN: ${{ secrets.ZAPBOT_TOKEN }}
ZAP_RELEASE: 1
ZAP_JAVA_VERSION: 11
run: ./gradlew -Dorg.gradle.jvmargs=-Xmx4g :zap:createMainRelease
upload-macos:
needs: release
name: Build and Upload macOS Dist
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 11
- name: Build and Upload
env:
ZAPBOT_TOKEN: ${{ secrets.ZAPBOT_TOKEN }}
ZAP_RELEASE: 1
ZAP_JAVA_VERSION: 11
run: ./gradlew -Dorg.gradle.jvmargs=-Xmx4g :zap:uploadMacDist