2021-04-30 22:23:51 +00:00
|
|
|
name: Deploy Docs
|
|
|
|
|
2021-03-01 07:31:02 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
2023-05-15 07:06:15 +00:00
|
|
|
- release-*
|
2022-01-14 23:26:21 +00:00
|
|
|
|
2024-01-18 20:03:07 +00:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2021-03-01 07:31:02 +00:00
|
|
|
jobs:
|
|
|
|
deploy:
|
2022-10-06 17:14:13 +00:00
|
|
|
runs-on: ubuntu-latest
|
2024-01-18 20:03:07 +00:00
|
|
|
permissions:
|
|
|
|
contents: write
|
2021-03-01 07:31:02 +00:00
|
|
|
steps:
|
2024-10-29 08:45:25 +00:00
|
|
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
2021-03-01 07:31:02 +00:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
|
2021-04-30 22:23:51 +00:00
|
|
|
- name: Setup Go
|
2024-10-29 08:49:28 +00:00
|
|
|
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
|
2021-04-30 22:23:51 +00:00
|
|
|
with:
|
2022-09-15 15:17:52 +00:00
|
|
|
go-version-file: "go.mod"
|
2021-04-30 22:23:51 +00:00
|
|
|
|
2022-11-30 19:06:59 +00:00
|
|
|
- name: Configure Git
|
|
|
|
run: |
|
|
|
|
git config user.name "$GITHUB_ACTOR"
|
|
|
|
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
|
|
|
|
|
2021-04-30 22:23:51 +00:00
|
|
|
- name: Build Docs
|
2022-02-01 13:57:49 +00:00
|
|
|
run: make docs.publish
|
|
|
|
env:
|
2022-10-06 17:14:13 +00:00
|
|
|
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|