Skip to content

Commit 0c82163

Browse files
committed
Build assets with Phoenix
1 parent 66381d8 commit 0c82163

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

.github/workflows/ci.yml

+15-12
Original file line numberDiff line numberDiff line change
@@ -728,23 +728,26 @@ jobs:
728728

729729
- name: Setup
730730
run: |
731-
mix esbuild.install --if-missing
732731
mkdir -p ./assets
732+
mix assets.setup
733733
734-
- name: npm install
735-
working-directory: assets
736-
run: npm install
734+
# - name: npm install
735+
# working-directory: assets
736+
# run: npm install
737737

738-
- name: npm run deploy
739-
working-directory: assets
740-
run: npm run deploy
738+
# - name: npm run deploy
739+
# working-directory: assets
740+
# run: npm run deploy
741741

742-
- name: npm install
743-
working-directory: assets
744-
run: yarn install --prod
742+
# - name: yarn install
743+
# working-directory: assets
744+
# run: yarn install --prod
745745

746-
- name: Build digested assets
747-
run: mix phx.digest --no-vsn
746+
# - name: Build digested assets
747+
# run: mix phx.digest --no-vsn
748+
749+
- name: Build and deploy assets
750+
run: mix assets.deploy
748751

749752
# Copying is faster than syncing. With digested files, multiple versions
750753
# can coexist on the server, and the app will choose the right ones.

0 commit comments

Comments
 (0)