Update README.md #8
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: Deploy to GitHub Pages | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18.19.1' # Asegúrate de usar la versión que tu proyecto requiere | |
- name: Install dependencies | |
run: npm install | |
# Agregar la clave de OpenAI a .env usando GitHub Secrets | |
- name: Set up OpenAI API Key | |
run: | | |
echo "OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }}" > .env | |
- name: Build Tailwind CSS | |
run: npx tailwindcss -i ./style.css -o ./output.css --minify | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./ # Directorio raíz, cambia si tus archivos están en otra carpeta |