Skip to content

Commit

Permalink
Add GitHub Actions workflow for docs deployment
Browse files Browse the repository at this point in the history
Introduced a CI workflow specifically for the 'docs' branch to automate documentation deployment to GitHub Pages. The workflow triggers on push and pull request events, ensuring that any updates to the 'docs' branch are properly deployed. This enhances the efficiency of documentation updates and ensures a more streamlined process.
  • Loading branch information
eliasjpr committed Aug 17, 2024
1 parent 0eee77c commit e78fb55
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Crystal CI

on:
push:
branches: [docs]
pull_request:
branches: [docs]

permissions:
contents: write
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
docs:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: "./docs"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit e78fb55

Please sign in to comment.