Claude Code Plugins

Community-maintained marketplace

Feedback

GitHub Actions workflow patterns for deployment. Use when creating CI/CD workflows.

Install Skill

1Download skill
2Enable skills in Claude

Open claude.ai/settings/capabilities and find the "Skills" section

3Upload to Claude

Click "Upload skill" and select the downloaded ZIP file

Note: Please verify skill by going through its instructions before using it.

SKILL.md

name github-actions
description GitHub Actions workflow patterns for deployment. Use when creating CI/CD workflows.

GitHub Actions Skill

Deploy to GitHub Pages Pattern

File: .github/workflows/deploy.yml

name: Deploy to GitHub Pages

on:
  push:
    branches: [main]
  workflow_dispatch:

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

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

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v4

      - name: Setup Node
        uses: actions/setup-node@v4
        with:
          node-version: '20'
          cache: 'npm'

      - name: Install dependencies
        run: npm ci

      - name: Build
        run: |
          npm run tina:build
          npm run build
          npx pagefind --site dist

      - name: Upload artifact
        uses: actions/upload-pages-artifact@v3
        with:
          path: ./dist

  deploy:
    needs: build
    runs-on: ubuntu-latest
    environment:
      name: github-pages
      url: ${{ steps.deployment.outputs.page_url }}
    steps:
      - name: Deploy to GitHub Pages
        id: deployment
        uses: actions/deploy-pages@v4

Key Points

  • Two jobs: build and deploy
  • Pagefind runs after Astro build
  • Uses official GitHub Pages actions
  • Requires proper permissions

GitHub Pages Setup

  1. Repository Settings → Pages
  2. Source: GitHub Actions (not branch)
  3. First push triggers deployment