github.com/wangyougui/gf/v2@v2.6.5/.github/workflows/doc-build.yml (about)

     1  name: Deploy to GitHub Pages
     2  
     3  on:
     4    push:
     5      branches:
     6        - 'doc-build'
     7    schedule:
     8      - cron: '0 15 * * *'
     9  
    10  jobs:
    11    deploy:
    12      name: Deploy to GitHub Pages
    13      runs-on: ubuntu-latest
    14      steps:
    15        - uses: actions/checkout@v3
    16          with:
    17            ref: doc-build
    18        - uses: actions/setup-node@v3
    19          with:
    20            node-version: 18
    21            cache: npm
    22        - name: Set Up Golang Environment
    23          uses: actions/setup-go@v4
    24          with:
    25            go-version: 1.20.4
    26            cache: false
    27        - name: download goframe docs
    28          run: ./download.sh
    29        - name: Install dependencies
    30          run: npm ci
    31        - name: Build website
    32          run: npm run build
    33        - name: Deploy to GitHub Pages
    34          uses: peaceiris/actions-gh-pages@v3
    35          with:
    36            github_token: ${{ secrets.GITHUB_TOKEN }}
    37            publish_dir: ./build
    38            cname: pages.goframe.org