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