Skip to content

Update README.md

Update README.md #3

name: Build & Publish
env:
GHPAGE: true
on:
push:
branches:
- main
jobs:
build-site:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Composer Dependencies
run: composer install --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist
- name: Install NPM Dependencies
run: npm install
- name: Build Site
run: composer build
- name: Stage Files
run: git add -f build_local
- name: Commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"
git commit -m "Build for deploy"
- name: Publish
run: |
git subtree split --prefix build_local -b gh-pages
git push -f origin gh-pages:gh-pages