Merge pull request #1512 from zapbot/add-on-release #944
This file contains hidden or 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@v6 | |
| with: | |
| path: zap-admin | |
| fetch-depth: 10 | |
| - name: Checkout zaproxy-website | |
| uses: actions/checkout@v6 | |
| with: | |
| repository: zaproxy/zaproxy-website | |
| persist-credentials: false | |
| path: zaproxy-website | |
| fetch-depth: 0 | |
| - name: Checkout org.zaproxy.ZAP | |
| uses: actions/checkout@v6 | |
| with: | |
| repository: flathub/org.zaproxy.ZAP | |
| persist-credentials: false | |
| path: org.zaproxy.ZAP | |
| fetch-depth: 0 | |
| - name: Checkout zap-mgmt-scripts | |
| uses: actions/checkout@v6 | |
| with: | |
| repository: zapbot/zap-mgmt-scripts | |
| persist-credentials: false | |
| path: zap-mgmt-scripts | |
| fetch-depth: 0 | |
| - name: Setup Java | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'temurin' | |
| java-version: 17 | |
| - name: Handle Release | |
| run: cd zap-admin && ./gradlew handleRelease | |
| env: | |
| ZAPBOT_TOKEN: ${{ secrets.ZAPBOT_TOKEN }} |