Skip to content

Commit

Permalink
🚀 Nuevo despliegue a servidor
Browse files Browse the repository at this point in the history
  • Loading branch information
1cgonza committed Apr 8, 2024
1 parent 7eb6f27 commit 012c225
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 68 deletions.
39 changes: 15 additions & 24 deletions .github/workflows/despliegue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,43 +2,34 @@ name: Despliegue

on:
push:
branches: ['main']

workflow_dispatch:

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

concurrency:
group: 'pages'
cancel-in-progress: false
branches: [main]

jobs:
deploy:
build:
name: 🐘 Desplegar
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest

steps:
- name: 🐯 Obtener código del repositorio
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: 🐝 Usar Node
uses: actions/setup-node@v3
with:
node-version: 'lts/*'

- name: 🦒 Instalar dependencias y hacer build
run: |
yarn install --frozen-lockfile
yarn build
- name: 🐝 Configurar página de GitHub
uses: actions/configure-pages@v3
- name: 🦅 Enviar archivos
uses: actions/upload-pages-artifact@v3
- name: 🦅 Enviar por SFTP
uses: wangyucode/[email protected]
with:
path: './publico'
- name: 🐘 Desplegar a Github Pages
id: deployment
uses: actions/deploy-pages@v4
host: ${{ secrets.DOMINIO }}
username: ${{ secrets.USUARIO }}
password: ${{ secrets.CLAVE }}
localDir: 'publico'
remoteDir: '/'
removeExtraFilesOnServer: true
44 changes: 0 additions & 44 deletions despliegue.yml

This file was deleted.

0 comments on commit 012c225

Please sign in to comment.