Skip to content

test(mqtt): fix mqtt client connect error #15

test(mqtt): fix mqtt client connect error

test(mqtt): fix mqtt client connect error #15

Workflow file for this run

name: release
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.21
- uses: actions/setup-node@v3.6.0
with:
node-version: '16'
cache: yarn
cache-dependency-path: ./web/yarn.lock
- name: Build
run: |
version=${GITHUB_REF##*/} GOOS=linux GOARCH=amd64 bash build/deb/build.sh
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
./dist/tio_linux_amd64.deb
./dist/tio_linux_amd64
- name: Generate API docs
run: |
chmod +x ./dist/tio_linux_amd64 && \
bash -c "nohup ./dist/tio_linux_amd64 > /dev/null 2>&1 &" && \
sleep 5 && \
curl http://localhost:9000/apidocs.json > api/swagger_ui/apidocs.json && \
sed -i 's/\/apidocs.json/apidocs.json/g' api/swagger_ui/index.html
- name: Deploy API docs to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: api/swagger_ui