aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.github/workflows/build_index.yml
blob: 31c7125dc31f57329f69e9182b9c6ceeb0393138 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Build Package Index

on:
  push:
    branches:
      - gh-pages
  workflow_dispatch:

jobs:
  build:
    runs-on: ubuntu-latest
    permissions:
      contents: write
      pull-requests: write
      id-token: write

    steps:
      - name: Checkout Code
        uses: actions/checkout@v4

      - name: setup git
        run: |
          git config --global user.email "bot@hydroroll.team"
          git config --global user.name "HydroRollBot"

      - name: build pkg Index
        run: make pkg_index

      - name: commit
        uses: stefanzweifel/git-auto-commit-action@v5
        with:
          branch: gh-pages
          commit_message: "feat(site): update index for ${{ github.ref_name }} [skip ci]"