Merge pull request #2852 from zapbot/update-data #2251
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: 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 }} |