Update compile-web-panel.yml
This commit is contained in:
parent
c6b5c06e87
commit
526524ea11
1 changed files with 7 additions and 0 deletions
7
.github/workflows/compile-web-panel.yml
vendored
7
.github/workflows/compile-web-panel.yml
vendored
|
@ -19,6 +19,7 @@ jobs:
|
|||
with:
|
||||
repository: ${{ github.repository }}
|
||||
- name: Npm install
|
||||
working-directory: ./web
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16
|
||||
|
@ -28,9 +29,11 @@ jobs:
|
|||
- run: npm run build
|
||||
|
||||
- name: Get composer cache directory
|
||||
working-directory: ./web
|
||||
id: composer-cache
|
||||
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
|
||||
- name: Cache composer dependencies
|
||||
working-directory: ./web
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: ${{ steps.composer-cache.outputs.dir }}
|
||||
|
@ -40,15 +43,19 @@ jobs:
|
|||
restore-keys: ${{ runner.os }}-composer-
|
||||
|
||||
- name: Install Dependencies
|
||||
working-directory: ./web
|
||||
run: composer install
|
||||
|
||||
- name: Dump autoload dependecies
|
||||
working-directory: ./web
|
||||
run: composer dump-autoload
|
||||
|
||||
- name: Inject slug/short variables
|
||||
working-directory: ./web
|
||||
uses: rlespinasse/github-slug-action@v3.x
|
||||
|
||||
- name: Zip the files
|
||||
working-directory: ./web
|
||||
run: |
|
||||
rm -rf .git
|
||||
rm -rf .github
|
||||
|
|
Loading…
Reference in a new issue