From f69284acea6d57017e26ac7cd2828473e088d37f Mon Sep 17 00:00:00 2001 From: Abin Simon Date: Thu, 3 Nov 2022 12:44:37 +0530 Subject: [PATCH] Always build cli-docs (#1435) ## Description We need cli docs to be available to be able to be able to build docs. ## Type of change - [ ] :sunflower: Feature - [ ] :bug: Bugfix - [ ] :world_map: Documentation - [ ] :robot: Test - [x] :computer: CI/Deployment - [ ] :hamster: Trivial/Minor ## Issue(s) * https://github.com/alcionai/corso/pull/1434 ## Test Plan - [x] :muscle: Manual - [ ] :zap: Unit test - [ ] :green_heart: E2E --- .github/workflows/ci.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bc478cd07..07c4fd592 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -89,20 +89,17 @@ jobs: - uses: actions/checkout@v3 - name: Setup Golang with cache - if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main' || needs.precheck.outputs.srcfileschanged == 'true' uses: magnetikonline/action-golang-cache@v3 with: go-version-file: src/go.mod - name: Generate CLI Docs - if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main' || needs.precheck.outputs.srcfileschanged == 'true' working-directory: ./src run: | go run ./cmd/mdgen/mdgen.go generate # migrate generated md files into /docs/docs/cli - name: Move CLI .md to Docs - if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main' || needs.precheck.outputs.srcfileschanged == 'true' run: | mkdir -p ./docs/docs/cli mv ./src/cmd/mdgen/cli_markdown/* ./docs/docs/cli/ @@ -130,8 +127,6 @@ jobs: npm run build - uses: actions/upload-artifact@master - # uncomment next line to disable creating docs artifacts on PR runs - # if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main' name: Upload docs as artifacts with: name: docs