github.com/Azure/aad-pod-identity@v1.8.17/.github/workflows/gh-pages.yml (about)

     1  name: github pages
     2  
     3  on:
     4    push:
     5      branches:
     6        - master
     7  
     8  permissions:
     9    contents: write
    10  
    11  jobs:
    12    deploy:
    13      runs-on: ubuntu-latest
    14      steps:
    15        - uses: actions/checkout@v3
    16          with:
    17            submodules: true # Fetch Hugo themes (true OR recursive)
    18            fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
    19  
    20        - name: Setup Hugo
    21          uses: peaceiris/actions-hugo@v2
    22          with:
    23            hugo-version: "0.75.1"
    24            extended: true
    25  
    26        - name: Build
    27          run: |
    28            make -C website production-build
    29  
    30        - name: Deploy
    31          uses: peaceiris/actions-gh-pages@v3
    32          with:
    33            github_token: ${{ secrets.GITHUB_TOKEN }}
    34            publish_dir: ./website/public