Skip to content

Commit

Permalink
create deploy workflow (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
wuletawwonte authored Mar 3, 2024
1 parent c787f8a commit ac9b7f0
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
on:
push:
branches:
- "main"
name: 🚀 Build and Deploy Project
jobs:
web-deploy:
name: 🎉 Deploy
runs-on: ubuntu-latest
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v3

- name: 🛠️ Install dependencies
run: npm ci

- name: 🛠️ Build project
run: npm run export

- name: 📂 Sync files
uses: SamKirkland/[email protected]
with:
server: ftp.wuletawwonte.com
username: ${{ secrets.ftp_username }}
password: ${{ secrets.ftp_password }}
server-dir: public_html/
local-dir: .output/public/

0 comments on commit ac9b7f0

Please sign in to comment.