diff --git a/.github/workflows/compile_examples.yml b/.github/workflows/compile_examples.yml index 6f1fe02..9809156 100644 --- a/.github/workflows/compile_examples.yml +++ b/.github/workflows/compile_examples.yml @@ -16,4 +16,4 @@ on: jobs: arduino-devops: - uses: Infineon/arduino-devops/.github/workflows/compile-examples-lib.yml@latest \ No newline at end of file + uses: Infineon/arduino-devops/.github/workflows/compile-examples.yml@latest \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..dbbea88 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,25 @@ +name: Release + +on: + push: + tags: + - '[0-9]+.[0-9]+.[0-9]+**' + workflow_dispatch: + inputs: + version: + description: 'Release version' + required: true + default: '' + type: choice + options: + - patch + - minor + - major + +jobs: + arduino-devops: + uses: Infineon/arduino-devops/.github/workflows/release.yml@latest + with: + version: ${{ inputs.version }} + secrets: + release-ssh-key: ${{ secrets.release_wflow_key }} \ No newline at end of file diff --git a/README.md b/README.md index e03871c..47da29d 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # XENSIV™ PAS CO2 Sensor Arduino Library -![build-check](https://github.com/Infineon/arduino-pas-co2-sensor/actions/workflows/build-check.yml/badge.svg) +[![Compile examples](https://github.com/Infineon/arduino-pas-co2-sensor/actions/workflows/compile_examples.yml/badge.svg)](https://github.com/Infineon/arduino-pas-co2-sensor/actions/workflows/compile_examples.yml) Arduino library of Infineon's [**XENSIV™ Photoacoustic Spectroscopy (PAS) CO2**](https://www.infineon.com/cms/en/product/sensor/co2-sensors/) miniaturized sensor.