mirror of
https://github.com/matrix-org/matrix-hookshot.git
synced 2025-03-10 21:19:13 +00:00
Build docs on each push
This commit is contained in:
parent
65a7d96644
commit
6a5c84acd9
2
.github/workflows/docker-hub-latest.yml
vendored
2
.github/workflows/docker-hub-latest.yml
vendored
@ -8,7 +8,7 @@ on:
|
|||||||
env:
|
env:
|
||||||
DOCKER_NAMESPACE: halfshot
|
DOCKER_NAMESPACE: halfshot
|
||||||
PLATFORMS: linux/amd64
|
PLATFORMS: linux/amd64
|
||||||
# Only push if this is develop, otherwise we just want to build
|
# Only push if this is main, otherwise we just want to build
|
||||||
PUSH: ${{ github.ref == 'refs/heads/main' }}
|
PUSH: ${{ github.ref == 'refs/heads/main' }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
7
.github/workflows/docs.yml
vendored
7
.github/workflows/docs.yml
vendored
@ -2,10 +2,10 @@ name: Build docs
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
|
|
||||||
workflow_dispatch:
|
env:
|
||||||
|
# Only push if this is main, otherwise we just want to build
|
||||||
|
PUSH: ${{ github.ref == 'refs/heads/main' }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
@ -22,6 +22,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Deploy latest
|
- name: Deploy latest
|
||||||
uses: peaceiris/actions-gh-pages@v3
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
|
if: env.PUSH
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
keep_files: true
|
keep_files: true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user