Merge pull request #1024 from zapbot/add-on-release #510
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: Handle Release | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
paths: | |
- ZapVersions*.xml | |
jobs: | |
handle-release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
path: zap-admin | |
fetch-depth: 10 | |
- name: Checkout zaproxy-website | |
uses: actions/checkout@v3 | |
with: | |
repository: zaproxy/zaproxy-website | |
persist-credentials: false | |
path: zaproxy-website | |
fetch-depth: 0 | |
- name: Setup Java | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: 11 | |
- name: Handle Release | |
run: cd zap-admin && ./gradlew handleRelease | |
env: | |
ZAPBOT_TOKEN: ${{ secrets.ZAPBOT_TOKEN }} |