my-portfolio/.github/workflows/ftpDeploy.yml

32 lines
689 B
YAML
Raw Permalink Normal View History

2023-10-24 16:08:02 +01:00
on:
push:
branches:
- '*'
2021-08-22 12:37:57 +01:00
name: 🚀 Deploy website on push
jobs:
web-deploy:
name: 🎉 Deploy
runs-on: ubuntu-22.04
2021-08-22 12:37:57 +01:00
steps:
- name: 🚚 Get latest code
2023-10-20 09:47:53 +01:00
uses: actions/checkout@v3
2021-08-23 20:22:37 +01:00
- name: Use Node.js Latest
2023-10-20 09:47:53 +01:00
uses: actions/setup-node@v3
2021-08-23 20:22:37 +01:00
with:
2023-10-24 16:04:17 +01:00
node-version: 20
- name: 🔨Run Gulp
run: |
2022-01-01 00:26:39 +00:00
export github="true"
2021-08-23 20:22:37 +01:00
npm install
npm start
- name: 📂 Sync files to server
uses: SamKirkland/FTP-Deploy-Action@v4.3.4
2021-08-22 12:37:57 +01:00
with:
server: ftp.rohitpai.co.uk
username: u987021215.rodude123
password: ${{ secrets.FTPPASSWORD }}
local-dir: ./dist/