This commit is contained in:
Mayel de Borniol 2024-04-16 13:37:21 +01:00
parent beaf065012
commit 566381e53f
3 changed files with 19 additions and 5 deletions

View file

@ -162,10 +162,16 @@ jobs:
name: Build app
uses: gacts/run-and-post-run@v1
with:
# TODO: figure out why Surface compiler is failing to create assets and remove the workaround (of using the ones already in the repo)
run: |
ls -la data/current_flavour/config/flavour_assets/
ls -la data/current_flavour/config/flavour_assets/hooks/
just _rel-build-OTP remote
cp -r data/current_flavour/config/flavour_assets data/current_flavour/config/flavour_assets_bak 
just _rel-compile-OTP remote
rm -rf data/current_flavour/config/flavour_assets
mv data/current_flavour/config/flavour_assets_bak data/current_flavour/config/flavour_assets
just _rel-compile-assets remote
just _rel-release-OTP remote
cd _build/prod/rel && tar -czvf bonfire-${{ env.FLAVOUR }}-amd64-debian-bullseye.tar.gz bonfire
post: |
ls -la data/current_flavour/config/flavour_assets/

View file

@ -634,13 +634,21 @@ rel-build-OTP USE_EXT="local" ARGS="": _rel-init _rel-prepare
WITH_DOCKER=no just _rel-build-OTP {{ USE_EXT }} {{ ARGS }}
_rel-build-OTP USE_EXT="local" ARGS="":
just _rel-compile-OTP {{ USE_EXT }} {{ ARGS }}
just _rel-compile-assets {{ USE_EXT }}
just _rel-release-OTP {{ USE_EXT }}
_rel-compile-OTP USE_EXT="local" ARGS="":
just rel-mix {{ USE_EXT }} "compile --return-errors {{ ARGS }}"
_rel-compile-assets USE_EXT="local" ARGS="":
yarn -v || npm install --global yarn
-rm -rf priv/static
cd ./assets && yarn && yarn build && cd ..
just rel-mix {{ USE_EXT }} phx.digest
just rel-mix {{ USE_EXT }} release
# just rel-mix {{ USE_EXT }} compile
just rel-mix {{ USE_EXT }} phx.digest {{ ARGS }}
_rel-release-OTP USE_EXT="local" ARGS="":
just rel-mix {{ USE_EXT }} release {{ ARGS }}
rel-mix USE_EXT="local" ARGS="":
@echo {{ ARGS }}

View file

@ -157,7 +157,7 @@ defmodule Bonfire.Umbrella.MixProject do
# TODO: put these in ENV or an external writeable config file similar to deps.*
@config [
# note that the flavour will automatically be added where the dash appears
version: "0.9.10-beta.54",
version: "0.9.10-beta.55",
elixir: ">= #{System.get_env("ELIXIR_VERSION", "1.13.4")}",
flavour: @flavour,
default_flavour: @default_flavour,