Build and Publish #1076
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: 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' |