-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create main.yml for CPanel deployment
- Loading branch information
1 parent
cf66e4c
commit 325da70
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |