From 61d1a160be7d09e3780a675718e9eafb1d205998 Mon Sep 17 00:00:00 2001 From: Manish Shinde Date: Mon, 19 Sep 2022 14:50:09 -0400 Subject: [PATCH 1/2] Created files --- .github/workflows/generate-documentation.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 .github/workflows/generate-documentation.yml diff --git a/.github/workflows/generate-documentation.yml b/.github/workflows/generate-documentation.yml new file mode 100644 index 0000000..e69de29 From 4103002cb43e15dad9f1fad8e70fe38f6de6e447 Mon Sep 17 00:00:00 2001 From: Manish Shinde Date: Mon, 19 Sep 2022 14:54:46 -0400 Subject: [PATCH 2/2] Updated generate documentation part --- .github/workflows/generate-documentation.yml | 37 ++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/.github/workflows/generate-documentation.yml b/.github/workflows/generate-documentation.yml index e69de29..a08e14f 100644 --- a/.github/workflows/generate-documentation.yml +++ b/.github/workflows/generate-documentation.yml @@ -0,0 +1,37 @@ +name: Generate and Deploy Documentation + +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + build_and_deploy_job: + runs-on: ubuntu-latest + name: Build and Deploy Job + steps: + - uses: actions/checkout@v2 + with: + submodules: true + - name: Setup python + uses: actions/setup-python@v4 + with: + python-version: "3.x" + - name: Install pdoc3 + run: pip3 install pdoc3 + - name: Generate Documentation + run: pdoc --html csv_lua + - name: Build And Deploy + id: builddeploy + uses: Azure/static-web-apps-deploy@v1 + with: + azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN }} + repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments) + action: "upload" + ###### Repository/Build Configurations - These values can be configured to match your app requirements. ###### + # For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig + app_location: "/html/csv_lua" # App source code path + api_location: "api" # Api source code path - optional + output_location: "public" # Built app content directory - optional + ###### End of Repository/Build Configurations ######