Last active
June 18, 2021 22:16
-
-
Save Alfonzzoj/aac0201bac9f6cbc27d646bc4c59f737 to your computer and use it in GitHub Desktop.
Permite atravez de un github actions hacer push al ftp , cada vez que pusheamos a una rama en especifico
This file contains 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
#Creamos el workflow, y creamos las variables en config > secrets | |
name: 🧪 Deploy con Github Actions | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
web-deploy: | |
name: 🎉 Deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🚚 Obtener la ultima version del codigo | |
uses: actions/checkout@v2.3.2 | |
- name: 📂 Sincronizar archivos | |
uses: sebastianpopp/ftp-action@v2.0.0 | |
with: | |
host: ${{ secrets.FTP_SERVER }} | |
user: ${{ secrets.FTP_USER }} | |
password: ${{ secrets.FTP_PASSWORD }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment