Skip to content

Commit 1832a15

Browse files
committed
Update workflow to generate static HTML files
1 parent a0131ce commit 1832a15

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,15 @@ jobs:
5454
mix assets.deploy
5555
mix phx.digest
5656
57+
# Generate static HTML files
58+
mix phx.gen.release --docker
59+
MIX_ENV=prod mix release
60+
_build/prod/rel/kati_portfolio/bin/kati_portfolio eval "KatiPortfolio.Release.migrate()"
61+
_build/prod/rel/kati_portfolio/bin/kati_portfolio eval "KatiPortfolio.Release.rollback()"
62+
63+
# Copy the generated HTML files
64+
cp -r _build/prod/rel/kati_portfolio/lib/kati_portfolio-0.1.0/priv/static/* priv/static/
65+
5766
# Ensure CNAME is present
5867
echo "katibestdesign.com" > priv/static/CNAME
5968

0 commit comments

Comments
 (0)