mirror of
https://github.com/bbernhard/signal-cli-rest-api.git
synced 2026-09-22 06:29:09 +00:00
only (re-)build github pages documentation when a new release is published
see #872
This commit is contained in:
parent
1a2da6c79b
commit
5cc379fde0
7
.github/workflows/deploy-pages.yml
vendored
7
.github/workflows/deploy-pages.yml
vendored
@ -1,7 +1,9 @@
|
|||||||
name: Deploy API Docs to GitHub Pages
|
name: Deploy API Docs to GitHub Pages
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
release:
|
||||||
|
types:
|
||||||
|
- published
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
@ -24,8 +26,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Build static documentation bundle
|
- name: Build static documentation bundle
|
||||||
run: |
|
run: |
|
||||||
VERSION=$(git describe --tags --always)
|
src/docs/build-static-bundle.sh site "${{ github.event.release.tag_name }}"
|
||||||
src/docs/build-static-bundle.sh site "$VERSION"
|
|
||||||
|
|
||||||
- name: Upload Pages artifact
|
- name: Upload Pages artifact
|
||||||
uses: actions/upload-pages-artifact@v5
|
uses: actions/upload-pages-artifact@v5
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user