Publish Site #229
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: Publish Site | |
on: | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: 0 20 * * * | |
jobs: | |
build-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Install deps | |
run: | | |
npm install postcss-cli | |
npm install autoprefixer | |
sudo -E make docs-deps | |
- name: Build package docs | |
run: | | |
make docs-build | |
- name: Deploy 🚀 | |
if: github.ref == 'refs/heads/main' && github.event_name == 'push' | |
uses: JamesIves/github-pages-deploy-action@releases/v3 | |
with: | |
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} | |
BRANCH: gh-pages | |
FOLDER: public |