Merge pull request #8302 from ricekot/ddns-context #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |