2021-08-22 12:37:57 +01:00
|
|
|
on: push
|
|
|
|
name: 🚀 Deploy website on push
|
|
|
|
jobs:
|
|
|
|
web-deploy:
|
|
|
|
name: 🎉 Deploy
|
2023-10-19 13:24:56 +01:00
|
|
|
runs-on: ubuntu-22.04
|
2021-08-22 12:37:57 +01:00
|
|
|
steps:
|
|
|
|
- name: 🚚 Get latest code
|
|
|
|
uses: actions/checkout@v2
|
2021-08-23 20:22:37 +01:00
|
|
|
|
|
|
|
- name: Use Node.js 12
|
|
|
|
uses: actions/setup-node@v2-beta
|
|
|
|
with:
|
|
|
|
node-version: '12'
|
|
|
|
|
|
|
|
- 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
|
2021-08-22 12:37:57 +01:00
|
|
|
|
|
|
|
- name: 📂 Sync files
|
|
|
|
uses: SamKirkland/FTP-Deploy-Action@4.1.0
|
|
|
|
with:
|
2022-06-05 00:14:27 +01:00
|
|
|
server: ftp.rohitpai.co.uk
|
2021-08-22 12:37:57 +01:00
|
|
|
username: u987021215.rodude123
|
|
|
|
password: ${{ secrets.ftp_password }}
|
|
|
|
local-dir: ./dist/
|