WIP
Some checks failed
Build homebridge-hue-chase / Version (push) Successful in 5s
Build homebridge-hue-chase / Build (push) Successful in 18s
Build homebridge-hue-chase / Publish Latest (push) Successful in 11s
Build homebridge-hue-chase / Deploy (push) Failing after 10s

This commit is contained in:
Brandon Watson 2024-06-05 18:58:50 -05:00
parent b833496d3d
commit d2af2006fd

View File

@ -28,6 +28,7 @@ jobs:
with:
node-version: 18
- id: get_version
name: Set Version
run: |
export version=`node -p "require('./package.json').version"`
export commit=`echo $GITHUB_SHA | cut -c1-5`
@ -43,7 +44,8 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- run: npm config set @watsonb8:registry https://gitea.watsonlabs.net/api/packages/watsonb8/npm/
- env:
- name: Publish
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
COMMIT: ${{ needs.version.outputs.commit }}
run: |
@ -69,6 +71,8 @@ jobs:
echo 3
ssh-keyscan -p 22 homebridge.me >> ~/.ssh/known_hosts
echo 4
sudo apt update
echo 5
sudo apt-get install sshpass
- name: Remove old Package
@ -82,4 +86,3 @@ jobs:
npm install -g @watsonb8/homebridge-hue-chase
systemctl restart homebridge
ENDSSH