Skip to content

Commit

Permalink
Create main.yml (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanericNetwork authored Nov 22, 2023
2 parents 81e1124 + 7eb85c0 commit c4f4932
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build Laravel and NPM Packages

on:
push:
branches: [ "dev" ]
pull_request:
branches: [ "dev" ]

jobs:
biblio-build:

runs-on: ubuntu-latest

steps:
- uses: shivammathur/setup-php@15c43e89cdef867065b0213be354c2841860869e
with:
php-version: '8.1'
- uses: actions/checkout@v3
- name: Copy .env
run: php -r "file_exists('.env') || copy('.env.example', '.env');"
working-directory: "./src/"
- name: Install Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
working-directory: "./src/"
- name: Install NPM Packages
run: npm install
working-directory: "./src/"
- name: Build NPM
run: npm run build
working-directory: "./src/"

0 comments on commit c4f4932

Please sign in to comment.