-
Notifications
You must be signed in to change notification settings - Fork 222
34 lines (28 loc) · 824 Bytes
/
deploy.yml
File metadata and controls
34 lines (28 loc) · 824 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Deploy
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
- name: Install dependencies
run: |
composer install
- name: Build page
run: |
./vendor/bin/sculpin generate --env=prod --url="https://developers.shopware.com"
./contrib/package_plugins.sh
git clone https://github.com/shopware5/devdocs.git -b styletile output_prod/styletile
rm -rf output_prod/styletile/.git
echo "developers.shopware.com" > output_prod/CNAME
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./output_prod