Skip to content

Build and Publish #1132

Build and Publish

Build and Publish #1132

---
name: Build and Publish
on:
workflow_dispatch:
schedule:
- cron: "0 5 * * *"
push:
branches: [master]
jobs:
build-and-publish:
name: Build and publish pages
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build pages
uses: addnab/docker-run-action@v3
with:
image: centos/python-27-centos7
options: -v ${{ github.workspace }}:/opt/app-root/src
run: |
./planet-build-hook.sh
- name: Publish gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ${{ github.workspace }}/php/
cname: planet.freeipa.org
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'