File tree Expand file tree Collapse file tree 5 files changed +42
-4
lines changed
Expand file tree Collapse file tree 5 files changed +42
-4
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy Demo Docs
2+
3+ on :
4+ push :
5+ branches : ['main']
6+ pull_request :
7+ branches : ['main']
8+
9+ permissions :
10+ contents : write
11+
12+ jobs :
13+ deploy :
14+ runs-on : ubuntu-latest
15+ concurrency :
16+ group : ${{ github.workflow }}-${{ github.ref }}
17+ steps :
18+ - uses : actions/checkout@v4
19+
20+ - name : Setup PHP
21+ uses : shivammathur/setup-php@v2
22+ with :
23+ php-version : ' 8.4'
24+ extensions : mbstring, intl, xml
25+ tools : composer:v2
26+
27+ - name : Install Dependencies
28+ run : composer install --prefer-dist --no-progress --no-dev
29+
30+ - name : Build Demo Site
31+ run : php bin/litedocs build
32+
33+ - name : Deploy to GitHub Pages
34+ uses : peaceiris/actions-gh-pages@v3
35+ with :
36+ github_token : ${{ secrets.GITHUB_TOKEN }}
37+ publish_dir : ./site
38+ force_orphan : true
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ Here is a complete example of a configuration file:
88
99``` yaml
1010site_name : " My Documentation"
11- site_url : " [ https://example.com](https://example.com) "
11+ site_url : " https://example.com"
1212
1313# Directories
1414docs_dir : " docs"
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ You can download the standalone executable directly. This is the easiest way to
1414
1515``` bash
1616# Download the latest release
17- wget [ https://github.com/ezar101/litedocs/releases/latest/download/litedocs.phar](https://github.com/ezar101/litedocs/releases/latest/download/litedocs.phar)
17+ wget https://github.com/ezar101/litedocs/releases/latest/download/litedocs.phar
1818
1919# Make it executable
2020chmod +x litedocs.phar
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ Voici un exemple complet de fichier de configuration :
88
99``` yaml
1010site_name : " Ma Documentation"
11- site_url : " [ https://exemple.com](https://exemple.com) "
11+ site_url : " https://exemple.com"
1212
1313# Dossiers
1414docs_dir : " docs"
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ Vous pouvez télécharger l'exécutable autonome directement. C'est la méthode
1414
1515``` bash
1616# Télécharger la dernière version
17- wget [ https://github.com/ezar101/litedocs/releases/latest/download/litedocs.phar](https://github.com/ezar101/litedocs/releases/latest/download/litedocs.phar)
17+ wget https://github.com/ezar101/litedocs/releases/latest/download/litedocs.phar
1818
1919# Rendre exécutable
2020chmod +x litedocs.phar
You can’t perform that action at this time.
0 commit comments