diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000000000..0402d7b8282b9 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,26 @@ +name: Build telegraf on push + +on: + push: + branches: + - "develop" + workflow_dispatch: +env: + RUN_NUMBER: ${{ github.run_number }} + TELEGRAF_VERSION: 1.20.0 # needs to be updated manually + +jobs: + prebuild: + name: Build Telegraf + runs-on: ubuntu-latest + if: github.repository_owner == 'vunetsystems' + steps: + - uses: actions/checkout@v2 + - run: make telegraf + - name: Create Release + uses: softprops/action-gh-release@v1 + with: + files: telegraf + tag_name: v${{ env.TELEGRAF_VERSION }}.${{ env.RUN_NUMBER }} + draft: false + prerelease: false