From ff8f4b006b9831709907a19eb03bc1369356e732 Mon Sep 17 00:00:00 2001 From: Archit Gupta <71798289+archigup@users.noreply.github.com> Date: Thu, 16 Dec 2021 17:53:51 -0800 Subject: [PATCH] Add automated doxygen deployment (#184) Adds the automated doxygen action to a new on-each-commit workflow and the release workflow. Also removes the unused memory_statics.yml and makes the workflow file names consistent between repos. --- .github/workflows/doxygen.yml | 11 ++++++++++ .github/workflows/memory_statistics.yml | 22 ------------------- .../{release-workflow.yml => release.yml} | 14 +++++++++++- 3 files changed, 24 insertions(+), 23 deletions(-) create mode 100644 .github/workflows/doxygen.yml delete mode 100644 .github/workflows/memory_statistics.yml rename .github/workflows/{release-workflow.yml => release.yml} (94%) diff --git a/.github/workflows/doxygen.yml b/.github/workflows/doxygen.yml new file mode 100644 index 000000000..8ad1b197d --- /dev/null +++ b/.github/workflows/doxygen.yml @@ -0,0 +1,11 @@ +name: Doxygen Generation +on: + push: + branches: [main] + workflow_dispatch: +jobs: + doxygen-generation: + runs-on: ubuntu-latest + steps: + - name: Doxygen generation + uses: FreeRTOS/CI-CD-Github-Actions/doxygen-generation@main diff --git a/.github/workflows/memory_statistics.yml b/.github/workflows/memory_statistics.yml deleted file mode 100644 index 9c778c763..000000000 --- a/.github/workflows/memory_statistics.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Memory statistics - -on: - workflow_dispatch: - -jobs: - memory_statistics: - name: Calculate object sizes - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - with: - submodules: 'recursive' - - name: Measure sizes - uses: FreeRTOS/CI-CD-Github-Actions/memory_statistics@main - with: - config: .github/memory_statistics_config.json - - name: Upload table - uses: actions/upload-artifact@v2 - with: - name: size_table - path: size_table.md diff --git a/.github/workflows/release-workflow.yml b/.github/workflows/release.yml similarity index 94% rename from .github/workflows/release-workflow.yml rename to .github/workflows/release.yml index 2585fd26e..1d164d67b 100644 --- a/.github/workflows/release-workflow.yml +++ b/.github/workflows/release.yml @@ -116,9 +116,21 @@ jobs: with: name: coreMQTT-${{ github.event.inputs.version_number }}.zip path: zip-check/coreMQTT-${{ github.event.inputs.version_number }}.zip + deploy-doxygen: + needs: tag-commit + name: Deploy doxygen documentation + runs-on: ubuntu-latest + steps: + - name: Doxygen generation + uses: FreeRTOS/CI-CD-Github-Actions/doxygen-generation@main + with: + ref: ${{ github.event.inputs.version_number }} + add_release: "true" create-release: + needs: + - create-zip + - deploy-doxygen if: ${{ ( github.event.inputs.delete_existing_tag_release == 'true' && success() ) || ( github.event.inputs.delete_existing_tag_release == 'false' && always() ) }} - needs: create-zip name: Create Release and Upload Release Asset runs-on: ubuntu-latest steps: