Skip to content

Update [deploy].yaml #95

Update [deploy].yaml

Update [deploy].yaml #95

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches:
- main
workflow_dispatch: # Allows manual triggering
jobs:
deploy:
if: github.event_name == 'workflow_dispatch' || contains(github.event.head_commit.message, '[deploy]')
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
# Git configuration
- name: Configure Git
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "adrian@rebelion.la"
- name: Deploy to GitHub Pages
run: npm run deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}