mirror of
https://github.com/bonfire-networks/bonfire-app.git
synced 2024-05-05 18:58:44 +00:00
55
This commit is contained in:
parent
beaf065012
commit
566381e53f
8
.github/workflows/release.yaml
vendored
8
.github/workflows/release.yaml
vendored
|
@ -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/
|
||||
|
|
14
justfile
14
justfile
|
@ -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 }}
|
||||
|
|
2
mix.exs
2
mix.exs
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue