Skip to content

Build & deploy website #50

Build & deploy website

Build & deploy website #50

Workflow file for this run

name: Build & deploy website
on:
schedule:
- cron: '0 8 * * *'
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Download Cecil
run: |
curl -sSOL https://cecil.app/cecil.phar
php cecil.phar --version
- name: Create a new site
run: |
php cecil.phar new:site --no-interaction
- name: Build with Cecil
run: |
php cecil.phar build --verbose
env:
CECIL_BASEURL: https://cecilapp.github.io/skeleton/
CECIL_CANONICALURL: true
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: _site
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1