Skip to content

πŸš€ Deploy website on push #28

πŸš€ Deploy website on push

πŸš€ Deploy website on push #28

Workflow file for this run

on:
schedule:
- cron: '0 8,12,18,20 * * *' # This runs the scheduled job multiple times a day.
push:
branches:
- main # This runs the push job when there's a push to the 'main' branch.
name: πŸš€ Deploy website on push
jobs:
web-deploy:
name: πŸŽ‰ Deploy
runs-on: ubuntu-latest
steps:
- name: 🚚 Get latest code
uses: actions/[email protected]
- name: Build to production
run: |
npm install
npm install -g gatsby
npm run build
- name: πŸ“‚ Sync files
uses: SamKirkland/[email protected]
with:
server: ${{ secrets.FTP_SERVER }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
local-dir: ./public/