Skip to content

Commit

Permalink
DN-1: Clean up workflow, test 1.
Browse files Browse the repository at this point in the history
  • Loading branch information
dereckmezquita committed Apr 29, 2024
1 parent f04a65f commit 07c1d16
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/release_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,25 @@ jobs:
- name: Set branch name as env var
run: echo "BRANCH_NAME=${{ github.ref_name }}" >> $GITHUB_ENV

- name: Use branch name
- name: Print branch name
run: echo "The branch name is $BRANCH_NAME"

- name: Execute remote build command
uses: appleboy/[email protected]
env:
BRANCH_NAME: ${{ github.ref_name }}
FOO: 'BAR'
with:
host: ${{ secrets.REMOTE_HOST }}
username: ${{ secrets.REMOTE_USERNAME }}
password: ${{ secrets.REMOTE_PASSWORD }}
port: ${{ secrets.REMOTE_PORT }}
envs: BRANCH_NAME,FOO
envs: BRANCH_NAME
script: |
echo "I am $FOO"
echo "Building branch: $BRANCH_NAME"
source /root/.bashrc
source ~/.bashrc
which node && which npm
cd /html/derecksnotes-playground/test-derecksnotes.com/
git fetch origin $BRANCH_NAME
git fetch
git checkout $BRANCH_NAME
git pull
npm install
Expand Down

0 comments on commit 07c1d16

Please sign in to comment.