Merge pull request #2032 from psiinon/ssp/crowdin #1604
Workflow file for this run
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: | |
- master | |
jobs: | |
update-website: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20' | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
path: zaproxy-website | |
- 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: 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 }} |