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
|
2023-10-20 09:47:53 +01:00
|
|
|
uses: actions/checkout@v3
|
2021-08-23 20:22:37 +01:00
|
|
|
|
2023-10-20 10:07:57 +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-20 10:07:57 +01:00
|
|
|
node-version: 'latest'
|
2023-10-20 10:06:05 +01:00
|
|
|
|
|
|
|
- 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
|
2023-10-20 10:06:05 +01:00
|
|
|
|
2023-10-20 10:21:33 +01:00
|
|
|
- name: 📂 Sync files to server
|
2023-10-20 10:07:07 +01:00
|
|
|
uses: SamKirkland/FTP-Deploy-Action@v4.3.4
|
2021-08-22 12:37:57 +01:00
|
|
|
with:
|
2023-10-20 09:38:05 +01:00
|
|
|
server: ftp.rohitpai.co.uk
|
2023-10-20 09:57:49 +01:00
|
|
|
username: u987021215.rodude123
|
2023-10-20 10:23:31 +01:00
|
|
|
password: ${{ secrets.FTPPASSWORD }}
|
2023-10-20 10:06:05 +01:00
|
|
|
local-dir: ./dist/
|