Skip to content

Instantly share code, notes, and snippets.

@ArnaudLigny
Created January 4, 2024 13:42
Show Gist options
  • Save ArnaudLigny/695b58aaa62891d3b2342900afeb7985 to your computer and use it in GitHub Desktop.
Save ArnaudLigny/695b58aaa62891d3b2342900afeb7985 to your computer and use it in GitHub Desktop.
GitHub Action workflow: build & deploy a website with Cecil
name: Build & deploy website
on:
push:
branches: [master, main]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build with Cecil
uses: Cecilapp/Cecil-Action@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
deploy:
needs: build
permissions:
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: true
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment