Skip to content

Commit

Permalink
Create main.yml for CPanel deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
quinnouyang committed Mar 18, 2024
1 parent cf66e4c commit 325da70
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
on: push
name: πŸš€ Deploy website on push
jobs:
web-deploy:
name: πŸŽ‰ Deploy
runs-on: ubuntu-latest
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v4

- name: Use Node.js 20
uses: actions/setup-node@v2
with:
node-version: 20

- name: πŸ”¨ Build Project
run: |
npm install
npm install -g vite
npm run all && tsc && vite build --base https://stephenandrewtaylor.net/rare-test/ --outDir rare-test
- name: πŸ“‚ Sync files
uses: SamKirkland/FTP-Deploy-Action@v4.3.5
with:
server: ftp.stephenandrewtaylor.net
username: quinnouyang@stephenandrewtaylor.net
password: ${{ secrets.ftp_password }}
local-dir: ./rare-test/
dry-run: true

0 comments on commit 325da70

Please sign in to comment.