2024-04-03 22:15:26 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
|
|
|
|
needs: [test]
|
|
|
|
|
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
shell: bash
|
|
|
|
|
|
|
|
container:
|
2024-04-13 11:31:41 +00:00
|
|
|
image: luzifer/gh-arch-env
|
2024-04-03 22:15:26 +00:00
|
|
|
env:
|
|
|
|
CGO_ENABLED: 0
|
|
|
|
GOPATH: /go
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
pages: write
|
|
|
|
id-token: write
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
lfs: true
|
|
|
|
show-progress: false
|
2024-04-13 11:31:41 +00:00
|
|
|
submodules: true
|
2024-04-03 22:15:26 +00:00
|
|
|
|
|
|
|
- name: Marking workdir safe
|
|
|
|
run: git config --global --add safe.directory /__w/twitch-bot/twitch-bot
|
|
|
|
|
|
|
|
- name: Generate documentation
|
|
|
|
run: make render_docs DOCS_BASE_URL=https://luzifer.github.io/twitch-bot/
|
|
|
|
|
|
|
|
- name: Upload GitHub Pages artifact
|
|
|
|
uses: actions/upload-pages-artifact@v1
|
|
|
|
with:
|
|
|
|
path: .rendered-docs
|
|
|
|
|
|
|
|
- name: Deploy artifact
|
|
|
|
uses: actions/deploy-pages@v1
|
|
|
|
|
|
|
|
...
|