Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Oct 3, 2024
0 parents commit 3219184
Show file tree
Hide file tree
Showing 19 changed files with 15,897 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: "Deploy"

on:
push:
branches:
- "main"

jobs:
build:
name: Build & Deploy Site
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
coverage: none
extensions: intl
ini-values: memory_limit=-1
php-version: 8.4

- name: Install dependencies
run: |
composer install -n
npm install
- name: Build site
run: npm run prod

- name: Commit new build
run: |
git add -f build_production
git config --global user.email "[email protected]"
git config --global user.name "Jordi Boggiano"
git commit -m "Build for deploy"
git subtree split --prefix build_production -b gh-pages
git push -f origin gh-pages
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/build_local/
/cache/
/node_modules/
/vendor/
/.idea/
/.vscode/
npm-debug.log

# Optional ignores
# /build_staging/
# /build_production/
# /source/assets/build/
17 changes: 17 additions & 0 deletions bootstrap.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

use TightenCo\Jigsaw\Jigsaw;

/** @var \Illuminate\Container\Container $container */
/** @var \TightenCo\Jigsaw\Events\EventBus $events */

/*
* You can run custom code at different stages of the build process by
* listening to the 'beforeBuild', 'afterCollections', and 'afterBuild' events.
*
* For example:
*
* $events->beforeBuild(function (Jigsaw $jigsaw) {
* // Your code here
* });
*/
5 changes: 5 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"require": {
"tightenco/jigsaw": "^1.7"
}
}
Loading

0 comments on commit 3219184

Please sign in to comment.