-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #151 from dvishal485/main
update build steps
- Loading branch information
Showing
1 changed file
with
12 additions
and
14 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 |
---|---|---|
|
@@ -16,23 +16,21 @@ jobs: | |
# This workflow contains a single job called "build" | ||
build: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
runs-on: self-hosted | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v4 | ||
|
||
# Runs a single command using the runners shell | ||
- name: Deploy on Digitalocean | ||
uses: appleboy/[email protected] | ||
with: | ||
host: ${{secrets.SSH_HOST}} | ||
key: ${{secrets.SSH_KEY}} | ||
username: ${{secrets.SSH_USERNAME}} | ||
script: | | ||
cd ~/nix_frontend | ||
git stash | ||
git pull | ||
npm i | ||
npm run build | ||
- name: Get to work dir | ||
run: cd $GITHUB_WORKSPACE | ||
|
||
- name: Install dependencies | ||
run: npm i | ||
|
||
- name: Update build path | ||
run: ln -s ~/nix_frontend/dist dist | ||
|
||
- name: Run build task | ||
run: npm run build |