-
-
Notifications
You must be signed in to change notification settings - Fork 8
53 lines (41 loc) · 1.18 KB
/
update-assets.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: "Update Assets"
on:
workflow_dispatch:
push:
branches:
- 1.x
- next
jobs:
update:
name: Update assets
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node 18
uses: actions/setup-node@v4
with:
node-version: '18.x'
- name: Setup CI Authentication
run: |
composer config http-basic.nova.laravel.com ${{ secrets.NOVA_USERNAME }} ${{ secrets.NOVA_PASSWORD }}
- name: Install Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress
- name: Installed dependencies
run: composer show -D
- name: Install NPM on Laravel Nova
run: npm --prefix "./vendor/laravel/nova/" ci
- name: Compile Asset
run: |
npm ci
npm run production
env:
TAILWIND_MODE: build
- name: Copy language file
run: |
rm -Rf ./lang
cp -rf ./vendor/laravel/nova/resources/lang/ ./
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Update Assets