Skip to content
This repository was archived by the owner on Aug 2, 2025. It is now read-only.

Commit 89ce493

Browse files
authored
Merge pull request #7 from phpdaily/static-files
Generate static files
2 parents cda44d9 + 706e513 commit 89ce493

File tree

11 files changed

+1267
-946
lines changed

11 files changed

+1267
-946
lines changed

.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
# https://symfony.com/doc/current/best_practices.html#use-environment-variables-for-infrastructure-configuration
1515

1616
DATABASE_DSN=sqlite:/src/var/db.sqlite
17+
FILESYSTEM_ROOT=var/output
1718

1819
###> symfony/framework-bundle ###
1920
APP_ENV=dev

.github/workflows/deploy.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: deploy
2+
on:
3+
push:
4+
branches: [main]
5+
workflow_dispatch:
6+
7+
permissions:
8+
contents: read
9+
pages: write
10+
id-token: write
11+
12+
concurrency:
13+
group: "pages"
14+
cancel-in-progress: true
15+
16+
jobs:
17+
build:
18+
runs-on: ubuntu-latest
19+
env:
20+
FILESYSTEM_ROOT: dist
21+
steps:
22+
- uses: actions/checkout@master
23+
- uses: shivammathur/setup-php@v2
24+
with:
25+
php-version: 8.2
26+
- name: Install composer dependencies
27+
uses: ramsey/composer-install@v2
28+
- run: php bin/console synchronize:files
29+
- uses: actions/upload-pages-artifact@v1
30+
with:
31+
path: ./dist
32+
33+
pages:
34+
needs: build
35+
environment:
36+
name: github-pages
37+
url: ${{ steps.deployment.outputs.page_url }}
38+
runs-on: ubuntu-latest
39+
steps:
40+
- name: Deploy to GitHub Pages
41+
id: deployment
42+
uses: actions/deploy-pages@v1

composer.json

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,33 @@
66
"ext-ctype": "*",
77
"ext-iconv": "*",
88
"ext-pdo": "*",
9-
"jdecool/collection": "dev-master",
10-
"symfony/console": "5.3.*",
11-
"symfony/css-selector": "5.3.*",
12-
"symfony/dom-crawler": "5.3.*",
13-
"symfony/dotenv": "5.3.*",
9+
"bentools/iterable-functions": "^2.1",
10+
"illuminate/collections": "^9.13",
11+
"symfony/console": "6.2.*",
12+
"symfony/css-selector": "6.2.*",
13+
"symfony/dom-crawler": "6.2.*",
14+
"symfony/dotenv": "6.2.*",
1415
"symfony/flex": "^1.16.0",
15-
"symfony/framework-bundle": "5.3.*",
16-
"symfony/http-client": "5.3.*",
17-
"symfony/serializer": "5.3.*",
18-
"symfony/yaml": "5.3.*"
16+
"symfony/framework-bundle": "6.2.*",
17+
"symfony/http-client": "6.2.*",
18+
"symfony/serializer": "6.2.*",
19+
"symfony/yaml": "6.2.*"
1920
},
2021
"require-dev": {
21-
"symfony/stopwatch": "5.3.*",
22-
"symfony/twig-bundle": "5.3.*",
23-
"symfony/var-dumper": "5.3.*",
24-
"symfony/web-profiler-bundle": "5.3.*"
22+
"symfony/stopwatch": "6.2.*",
23+
"symfony/twig-bundle": "6.2.*",
24+
"symfony/var-dumper": "6.2.*",
25+
"symfony/web-profiler-bundle": "6.2.*"
2526
},
2627
"config": {
2728
"optimize-autoloader": true,
2829
"preferred-install": {
2930
"*": "dist"
3031
},
31-
"sort-packages": true
32+
"sort-packages": true,
33+
"allow-plugins": {
34+
"symfony/flex": true
35+
}
3236
},
3337
"autoload": {
3438
"psr-4": {
@@ -67,7 +71,7 @@
6771
"extra": {
6872
"symfony": {
6973
"allow-contrib": false,
70-
"require": "5.3.*"
74+
"require": "6.2.*"
7175
}
7276
}
7377
}

0 commit comments

Comments
 (0)