Skip to content

Commit

Permalink
Merge pull request #151 from dvishal485/main
Browse files Browse the repository at this point in the history
update build steps
  • Loading branch information
dvishal485 authored Aug 20, 2024
2 parents 7f4f536 + ca7c2c1 commit c5129a7
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c5129a7

Please sign in to comment.