-
Notifications
You must be signed in to change notification settings - Fork 107
41 lines (39 loc) · 970 Bytes
/
update-website.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Update Website
on:
workflow_dispatch:
push:
branches:
- master
jobs:
update-website:
runs-on: ubuntu-latest
steps:
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Checkout
uses: actions/checkout@v2
with:
path: zaproxy-website
- name: Checkout zaproxy.github.io
uses: actions/checkout@v2
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 }}