Merge pull request #1132 from mitelg/fix/repo-links #48
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
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 |