Created
January 4, 2024 13:42
-
-
Save ArnaudLigny/695b58aaa62891d3b2342900afeb7985 to your computer and use it in GitHub Desktop.
GitHub Action workflow: build & deploy a website with Cecil
This file contains hidden or 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: | |
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