-
Notifications
You must be signed in to change notification settings - Fork 24
47 lines (45 loc) · 1.09 KB
/
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
42
43
44
45
46
47
name: Update Website
on:
push:
branches:
- main
jobs:
update-website:
runs-on: ubuntu-latest
steps:
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2
- uses: actions/setup-node@v4
with:
node-version: '20'
- uses: actions/checkout@v4
with:
path: zap-api-docs
- 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: Generate apis.md
run: |
cd zap-api-docs
npm install
npm run build
- name: Build API docs
run: |
cd zap-api-docs
gem install bundler
bundle install
bundle exec middleman build --clean
- name: Update Website
uses: ./zap-api-docs/.github/actions/update-website
with:
repo: 'zaproxy.github.io'
branch: 'master'
user: 'zapbot'
email: '12745184+zapbot@users.noreply.github.com'
env:
AUTH_TOKEN: ${{ secrets.ZAPBOT_TOKEN }}