Skip to content

Commit 775c624

Browse files
committed
Update GitHub Actions workflow for better static asset handling
1 parent 4fa9e03 commit 775c624

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,20 @@ jobs:
3737

3838
- name: Build assets
3939
run: |
40-
mix assets.deploy
41-
mix phx.digest
42-
# Ensure static directory exists
40+
# Create necessary directories
4341
mkdir -p priv/static/images
44-
# Copy any static assets if they exist
42+
mkdir -p priv/static/assets
43+
44+
# Copy static assets
45+
cp -r priv/static/images/* priv/static/images/ 2>/dev/null || true
4546
cp -r assets/static/* priv/static/ 2>/dev/null || true
47+
48+
# Build and digest assets
49+
mix assets.deploy
50+
mix phx.digest
51+
52+
# Ensure CNAME is present
53+
echo "katibestdesign.com" > priv/static/CNAME
4654
4755
- name: Deploy to GitHub Pages
4856
uses: peaceiris/actions-gh-pages@v3

0 commit comments

Comments
 (0)