From 1db81275a482edc425e4c113dd66321b468959fb Mon Sep 17 00:00:00 2001 From: bparmar-splunk Date: Wed, 9 Mar 2022 15:30:51 +0530 Subject: [PATCH] API docs upload automated Update: - While release, api docs will be generated and compressed using zip tool. - Using upload-artifact github-action module, it will allow us to download api docs zip till 90 days. --- .github/workflows/release.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6ff012f8..d4cdce89 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,6 +19,8 @@ jobs: server-id: splunk-artifactory - name: build run: mvn package --file pom.xml -DskipTests=true + - name: Create temp artifacts apidocs folder + run: mkdir apidocs - name: Create GitHub Release uses: softprops/action-gh-release@v1 with: @@ -32,3 +34,12 @@ jobs: env: MAVEN_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }} MAVEN_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }} + + - name: Zip docs + run: zip -r apidocs/docs.zip splunk/target/apidocs + + - name: Upload Artifact + uses: actions/upload-artifact@v3 + with: + name: apidocs + path: apidocs/docs.zip