mirror of
https://github.com/okalachev/flix.git
synced 2026-08-15 16:29:00 +00:00
Add binaries to the docs only of DOCS_BINARIES repo variable is truthy
This commit is contained in:
@@ -32,6 +32,7 @@ jobs:
|
|||||||
- name: Build book
|
- name: Build book
|
||||||
run: cd docs && mdbook build
|
run: cd docs && mdbook build
|
||||||
- name: Wait for Build to complete
|
- name: Wait for Build to complete
|
||||||
|
if: ${{ vars.DOCS_BINARIES == '1' }}
|
||||||
uses: lewagon/wait-on-check-action@v1.9.1
|
uses: lewagon/wait-on-check-action@v1.9.1
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.sha }}
|
ref: ${{ github.sha }}
|
||||||
@@ -39,6 +40,7 @@ jobs:
|
|||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
wait-interval: 30
|
wait-interval: 30
|
||||||
- name: Find firmware binaries
|
- name: Find firmware binaries
|
||||||
|
if: ${{ vars.DOCS_BINARIES == '1' }}
|
||||||
id: build_run
|
id: build_run
|
||||||
run: |
|
run: |
|
||||||
RUN_ID=$(gh api "repos/${{ github.repository }}/actions/workflows/build.yml/runs?head_sha=${{ github.sha }}&per_page=1" --jq '.workflow_runs[0].id')
|
RUN_ID=$(gh api "repos/${{ github.repository }}/actions/workflows/build.yml/runs?head_sha=${{ github.sha }}&per_page=1" --jq '.workflow_runs[0].id')
|
||||||
@@ -46,6 +48,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Download firmware binaries
|
- name: Download firmware binaries
|
||||||
|
if: ${{ vars.DOCS_BINARIES == '1' }}
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
@@ -54,6 +57,7 @@ jobs:
|
|||||||
name: firmware-binary
|
name: firmware-binary
|
||||||
path: docs/build
|
path: docs/build
|
||||||
- name: Create shortcuts for firmware binaries
|
- name: Create shortcuts for firmware binaries
|
||||||
|
if: ${{ vars.DOCS_BINARIES == '1' }}
|
||||||
working-directory: docs/build
|
working-directory: docs/build
|
||||||
run: |
|
run: |
|
||||||
for FQBN in esp32.esp32.*; do
|
for FQBN in esp32.esp32.*; do
|
||||||
|
|||||||
Reference in New Issue
Block a user