@@ -229,6 +229,54 @@ jobs:
229229 path : ' build/api-documentation'
230230
231231
232+ build-upcoming-documentation :
233+ environment :
234+ name : dev-docs
235+ url : https://hydephp.github.io/develop/master/dev-docs/
236+
237+ runs-on : ubuntu-latest
238+ needs : run-smoke-tests
239+
240+ steps :
241+ - uses : actions/checkout@v3
242+ - uses : shivammathur/setup-php@16011a795d747d5f45038f96371c3b98aec5669d
243+ with :
244+ php-version : " 8.1"
245+
246+ - name : Cache Composer packages
247+ id : composer-cache
248+ uses : actions/cache@v3
249+ with :
250+ path : vendor
251+ key : ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
252+ restore-keys : |
253+ ${{ runner.os }}-php-
254+
255+ - name : Install Composer Dependencies
256+ run : composer install --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
257+
258+ - name : Download configuration
259+ run : wget https://api.github.com/repos/hydephp/develop/zipball/gh-pages-config-dev-docs -O config.zip
260+
261+ - name : Unzip configuration
262+ run : unzip config.zip -d temp
263+
264+ - name : Copy configuration to root
265+ run : cp -r temp/hydephp-develop-*/* .
266+
267+ - name : Move documentation files
268+ run : rm -rf _docs && mv -f docs _docs
269+
270+ - name : Compile the static site
271+ run : php hyde build
272+
273+ - name : Upload artifacts
274+ uses : actions/upload-artifact@v1
275+ with :
276+ name : ' dev-docs'
277+ path : ' _site/docs'
278+
279+
232280 build-preview-site :
233281 environment :
234282 name : live-preview-site
@@ -335,6 +383,7 @@ jobs:
335383 - run-smoke-tests
336384 - build-test-coverage
337385 - build-api-documentation
386+ - build-upcoming-documentation
338387 - build-preview-site
339388 - build-test-fixture-docs
340389
@@ -346,6 +395,7 @@ jobs:
346395 - name : Reset output directories
347396 run : |
348397 rm -rf master/coverage && mkdir master/coverage
398+ rm -rf master/dev-docs && mkdir master/dev-docs
349399 rm -rf master/api-docs && mkdir master/api-docs
350400 rm -rf master/preview && mkdir master/preview
351401 rm -rf master/test-fixtures && mkdir master/test-fixtures
@@ -356,6 +406,12 @@ jobs:
356406 name : html-coverage
357407 path : master/coverage
358408
409+ - name : Download upcoming documentation artifact
410+ uses : actions/download-artifact@v3
411+ with :
412+ name : dev-documentation
413+ path : master/dev-docs
414+
359415 - name : Download API documentation artifact
360416 uses : actions/download-artifact@v3
361417 with :
0 commit comments