Skip to content

Commit

Permalink
update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kahoona77 committed Dec 29, 2020
1 parent 4cd6ec7 commit 9cfcac7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ jobs:
- name: Test
run: go test -mod=vendor -v ./...
- name: Build linux arm
run: GOOS=linux GOARCH=arm GOARM=5 CGO_ENABLED=0 go build -mod=vendor -v -o somfy-rts-gateway-arm
run: GOOS=linux GOARCH=arm GOARM=5 CGO_ENABLED=0 go build -mod=vendor -v -o ./arm/somfy-rts-gateway
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: gobin
path: |
somfy-rts-gateway
somfy-rts-gateway-arm
./arm/somfy-rts-gateway
push_to_registry:
name: Push Docker image to Docker Hub
Expand Down Expand Up @@ -68,10 +68,10 @@ jobs:
name: gobin
- name: zip linux amd64
run: |
zip --junk-paths somfy-rts-gateway-linux-amd64.zip web/tmpl web/static/ somfy-rts-gateway
zip somfy-rts-gateway-linux-amd64.zip web/tmpl/* web/static/* README.md start.sh somfy.service somfy-rts-gateway
- name: zip linux arm
run: |
zip somfy-rts-gateway-linux-arm.zip web/tmpl web/static/ somfy-rts-gateway-arm
zip somfy-rts-gateway-linux-arm.zip web/tmpl/* web/static/* README.md start.sh somfy.service ./arm/somfy-rts-gateway
- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand All @@ -80,6 +80,7 @@ jobs:
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body_path: ./README.md
draft: false
prerelease: false
- name: Upload Release Asset
Expand Down
2 changes: 1 addition & 1 deletion start.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash -
BASE_PATH=/somfy PORT=9070 DEVICES_CONFIG=/opt/somfy/somfy.yaml SIGNALDUINO_ADDRESS=/dev/ttyUSB0 HOMEKIT_CONFIG_PATH=/opt/somfy/homekit HOMEKIT_CONFIG_PORT=40123 HOMEKIT_CONFIG_PIN=12344321 ./somfy-rts-gateway &>> somfy.log
BASE_PATH=/somfy PORT=9070 DEVICES_CONFIG=/opt/somfy/somfy.yaml SIGNALDUINO_ADDRESS=/dev/ttyUSB0 HOMEKIT_CONFIG_PATH=/opt/somfy/homekit HOMEKIT_CONFIG_PORT=40123 HOMEKIT_CONFIG_PIN=12344321 ./somfy-rts-gateway &> somfy.log

0 comments on commit 9cfcac7

Please sign in to comment.