ci(build_packages): update emqx.io when create release
@@ -77,6 +77,16 @@ jobs:
aws configure set aws_secret_access_key ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws configure set default.region us-west-2
aws s3 cp --recursive build/_packages s3://packages.emqx/nanomq/$(git describe --abbrev=0 --tags)
+ - name: update emqx.io
+ if: github.event_name == 'release'
+ run: |
+ curl --location --request POST "${{ secrets.EMQX_IO_RELEASE_API }}"\
+ --header "token: ${{ secrets.EMQX_IO_TOKEN }}" \
+ --header 'Content-Type: application/json' \
+ --data-raw '{
+ "repo": "${GITHUB_REPOSITORY}",
+ "tag": "${GITHUB_REF_NAME}"
+ }'
build_docker:
runs-on: ubuntu-20.04
