Build & deploy website #46
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 & 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 |