WIP
Some checks failed
Some checks failed
This commit is contained in:
parent
b833496d3d
commit
d2af2006fd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user