2022-09-08 02:50:23 +00:00
name : Maybe generate docs
on :
push :
branches :
- main
2022-09-08 03:05:41 +00:00
2022-09-08 02:50:23 +00:00
jobs :
docs :
name : Generate docs upon new release
runs-on : ubuntu-latest
2023-01-05 03:36:11 +00:00
container : elixir:1.14-alpine
2022-09-08 02:50:23 +00:00
env :
FLAVOUR : classic
FLAVOUR_PATH : flavours/classic
MIX_ENV : dev
WITH_DOCKER : no
CI : true
2022-09-08 04:32:19 +00:00
EXQLITE_USE_SYSTEM : 1
2022-09-08 05:09:44 +00:00
EXQLITE_SYSTEM_CFLAGS : -I/usr/include
EXQLITE_SYSTEM_LDFLAGS : -L/lib -lsqlite3
2022-09-08 02:50:23 +00:00
steps :
2022-09-08 03:10:56 +00:00
-
2022-09-08 04:58:38 +00:00
name : Install bash (needed for just), git (needed for checkout), tar (needed for cache), file (needed for bonfire_files), make/build-base/sqlite/graphviz (for arch), and just
run : apk add bash git tar file make build-base sqlite graphviz just
2022-09-08 02:50:23 +00:00
-
name : Checkout
uses : actions/checkout@v2
with :
fetch-depth : 2 # needed for action-detect-and-tag-new-version
2022-09-08 03:14:45 +00:00
# - # FIXME
# name: Detect new version
# id: version
# uses: salsify/action-detect-and-tag-new-version@v2
# with:
# version-command: |
# grep -m 1 'version:' mix.exs | cut -d '"' -f2
# -
# if: steps.version.outputs.current-version == steps.version.outputs.previous-version
# name: Cancel workflow if the version has not changed
# uses: andymckay/cancel-action@0.2
2022-09-08 03:26:05 +00:00
- name : Trust my repo
run : export GIT_CEILING_DIRECTORIES=/__w && git config --global --add safe.directory /__w/bonfire-app/bonfire-app # see https://github.com/actions/checkout/issues/760
2022-09-08 03:32:20 +00:00
- name : Install hex
run : mix local.hex --force
- name : Install rebar
run : mix local.rebar --force
2022-09-08 03:35:57 +00:00
- name : Prepare environment
run : just pre-setup && just init
- name : Install dependencies
run : mix deps.get
2022-09-08 03:05:41 +00:00
-
name : Generate docs
2022-09-08 03:35:57 +00:00
run : just docs
2022-09-08 05:23:23 +00:00
# -
# name: Generate arch reports
# run: just arch && mv reports/dev/static/html ./docs/exdoc/arch
2022-09-08 03:05:41 +00:00
-
name : Deploy docs
uses : peaceiris/actions-gh-pages@v3
with :
github_token : ${{ secrets.GITHUB_TOKEN }}
publish_dir : ./docs/exdoc
cname : doc.bonfirenetworks.org