Use SSH Deploy GitHub action for deploying leilukin.com
This commit is contained in:
parent
891b697d41
commit
bb3f5bb0fb
@ -3,7 +3,7 @@ name: Deploy to Hostinger
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main # The branch name your are commit the new changes
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@ -22,13 +22,15 @@ jobs:
|
|||||||
run: bun install
|
run: bun install
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: bun run build # The build command of your project
|
run: bun run build
|
||||||
|
|
||||||
- name: Push to another branch
|
- name: SSH Deploy to Hostinger
|
||||||
uses: s0/git-publish-subdir-action@develop
|
uses: easingthemes/ssh-deploy@main
|
||||||
env:
|
with:
|
||||||
REPO: self
|
SSH_PRIVATE_KEY: ${{ secrets.HOSTINGER_SSH_PRIVATE_KEY }}
|
||||||
BRANCH: build # The branch name where you want to push the assets
|
ARGS: "--delete"
|
||||||
FOLDER: ./_site # The directory where your assets are generated
|
SOURCE: "_site/"
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # GitHub will automatically add this - you don't need to bother getting a token
|
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
|
||||||
MESSAGE: "Build: ({sha}) {msg}" # The commit message
|
REMOTE_USER: ${{ secrets.REMOTE_USER }}
|
||||||
|
TARGET: ${{ secrets.REMOTE_TARGET }}
|
||||||
|
EXCLUDE: "/node_modules/ /host/"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user