[type:fix]fix_auth_doc (#988) #2075
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: Website Deploy | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
build_and_deploy_job: | |
runs-on: ubuntu-latest | |
name: Build and Deploy Job | |
steps: | |
- | |
name: Checkout Code | |
uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- | |
name: Setup Node | |
uses: actions/setup-node@v2.4.0 | |
with: | |
node-version: "18" | |
- | |
name: Setup Dependencies | |
run: yarn install | |
- | |
name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- | |
name: Generate PDF | |
run: | | |
bash .github/scripts/generate-pdf.sh | |
cp -r pdf/ static/ | |
- | |
name: Build Site | |
run: yarn build | |
- | |
name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
user_name: 'github-actions[bot]' | |
user_email: 'github-actions[bot]@users.noreply.github.com' | |
publish_branch: asf-site | |
publish_dir: ./build |