-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 3219184
Showing
19 changed files
with
15,897 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
* }); | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"require": { | ||
"tightenco/jigsaw": "^1.7" | ||
} | ||
} |
Oops, something went wrong.