Skip to content

Merge pull request #2873 from zapbot/update-data #2270

Merge pull request #2873 from zapbot/update-data

Merge pull request #2873 from zapbot/update-data #2270

name: Update Website
on:
workflow_dispatch:
push:
branches:
- main
jobs:
update-website:
runs-on: ubuntu-latest
steps:
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Checkout
uses: actions/checkout@v4
with:
path: zaproxy-website
- name: Checkout zaproxy.github.io
uses: actions/checkout@v4
with:
repository: zaproxy/zaproxy.github.io
persist-credentials: false
path: zaproxy.github.io
fetch-depth: 0
- name: Build Website Content
run: |
cd zaproxy-website
npm install
npm run build
- name: Update Website
uses: ./zaproxy-website/.github/actions/update-website
with:
repo: 'zaproxy.github.io'
branch: 'master'
user: 'zapbot'
email: '[email protected]'
env:
AUTH_TOKEN: ${{ secrets.ZAPBOT_TOKEN }}