Skip to content

Commit

Permalink
Attempt build and deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Guysnacho committed Nov 10, 2023
1 parent 66a2c6c commit f0fa48d
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# on:
# pull_request_review:
# types: [submitted]
on: push
name: 🚀 Deploy site on PR
jobs:
web-deploy:
name: 🎉 Deploy
runs-on: ubuntu-latest
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '20.9.0'
cache: 'npm'
- name: 🔨 Build Project
run: |
npm install
npm run build
- name: 📂 Sync files
uses: SamKirkland/FTP-Deploy-Action@v4.3.4
with:
server: ${{ secrets.ftp_server }}
username: ${{ secrets.ftp_user }}
password: ${{ secrets.ftp_password }}
protocol: ftps
port: ${{ secrets.ftp_port }} # todo replace with your web hosts ftps port
local-dir: './build'
server-dir: 'public_html/2024.mcbios.com/'
dry-run: true

0 comments on commit f0fa48d

Please sign in to comment.