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 e946204
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 40 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 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 }}
protocol: ftps
local-dir: ./dist/
dry-run: true
43 changes: 6 additions & 37 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@
"eslint-plugin-prettier": "^5.0.1",
"eslint-plugin-promise": "^6.1.1",
"prettier": "^3.0.3",
"typescript": "^5.2.2",
"vite": "^4.4.5",
"wrangler": "^3.34.2"
},
"dependencies": {
"@fontsource-variable/roboto-flex": "^5.0.14",
"@fontsource/open-sans": "^5.0.27",
"@fontsource/roboto-flex": "^5.0.14",
"d3": "^7.9.0",
"normalize.css": "^8.0.1"
"normalize.css": "^8.0.1",
"typescript": "^5.2.2",
"vite": "^4.4.5"
}
}

0 comments on commit e946204

Please sign in to comment.