-
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.
- Loading branch information
Showing
2 changed files
with
51 additions
and
31 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 |
---|---|---|
@@ -1,9 +1,28 @@ | ||
name: Actions Runner Controller Demo | ||
name: Deploy Preview | ||
on: | ||
push: | ||
|
||
jobs: | ||
Explore-GitHub-Actions: | ||
runs-on: arc-runner-set | ||
runs-on: arc-runner-set-webzard | ||
steps: | ||
- run: echo "🎉 This job uses runner scale set runners!" | ||
deploy_site: | ||
runs-on: arc-runner-set-webzard | ||
name: Deploy the site | ||
steps: | ||
- name: Executing remote SSH commands | ||
uses: appleboy/ssh-action@master | ||
with: | ||
host: 10.255.4.115 | ||
username: smartx | ||
password: ${{ secrets.HOST_PASSWORD }} | ||
script: | | ||
sudo su | ||
nvm use 16 | ||
cd /home/smartx/dovetail-v2 | ||
git fetch | ||
git checkout origin/yz-ai | ||
yarn build | ||
pm2 delete preview | ||
pm2 start npm --name "preview" -- run preview |
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