-
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 e946204
Showing
3 changed files
with
38 additions
and
40 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 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 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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