-
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.
chore: rename actions yml file and prepare pm2 run more closely
- Loading branch information
1 parent
1d3133c
commit 0c02456
Showing
3 changed files
with
25 additions
and
18 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,25 @@ | ||
name: Epitome CI/CD | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- test/gh-actions | ||
jobs: | ||
deploy: | ||
name: Deploy to Raspberry Pi 4 (self-hosted) 🦖 | ||
runs-on: self-hosted | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v4 | ||
- name: Install npm dependencies with yarn | ||
run: yarn | ||
- name: Build epitome (/dist) | ||
run: yarn run build | ||
- name: Stop previous epitome pm2 process | ||
run: yarn run stop-and-delete | ||
- name: Prepare application directory | ||
run: rm -rf ~/apps/epitome && mkdir ~/apps/epitome | ||
- name: Move build contents to application directory | ||
run: mv dist/* ~/apps/epitome | ||
- name: Start new epitome pm2 process | ||
run: cd ~/apps/epitome && yarn run start-and-register |
This file was deleted.
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