Merge pull request #182 from zaproxy/dependabot/bundler/middleman-4.5.1 #94
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: | |
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@v3 | |
with: | |
node-version: '20' | |
- uses: actions/checkout@v3 | |
with: | |
path: zap-api-docs | |
- name: Checkout zaproxy.github.io | |
uses: actions/checkout@v3 | |
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 }} |