From 7e28504d728b413539256d8f746a46b12e10ab71 Mon Sep 17 00:00:00 2001 From: Eric Peterson Date: Fri, 6 Nov 2020 19:45:45 -0700 Subject: [PATCH] chore(CI): Update workflow for API docs --- .github/workflows/release.yml | 4 ++-- box.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dbae0723..75dc3d8c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -74,7 +74,7 @@ jobs: - name: Get Current Version id: current_version - run: echo "::set-output name=version::`cat $TRAVIS_BUILD_DIR/box.json | jq '.version' -r`" + run: echo "::set-output name=version::`cat box.json | jq '.version' -r`" # - name: Upload API Docs to S3 # uses: jakejarvis/s3-sync-action@master @@ -85,4 +85,4 @@ jobs: # AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} # AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} # SOURCE_DIR: ".tmp/apidocs" - # DEST_DIR: "coldbox-modules/qb/${{ steps.current_version.version }}" \ No newline at end of file + # DEST_DIR: "${{ github.repository }}/${{ steps.current_version.version }}" \ No newline at end of file diff --git a/box.json b/box.json index 74877a4f..e527e67f 100644 --- a/box.json +++ b/box.json @@ -6,7 +6,7 @@ "documentation":"https://github.com/coldbox-modules/qb", "location":"forgeboxStorage", "scripts":{ - "generateAPIDocs":"rm .tmp --recurse --force && docbox generate mapping=qb excludes=test|ModuleConfig strategy-outputDir=.tmp/apidocs strategy-projectTitle=qb", + "generateAPIDocs":"touch .tmp && rm .tmp --recurse --force && docbox generate mapping=qb excludes=test|ModuleConfig strategy-outputDir=.tmp/apidocs strategy-projectTitle=qb", "commitAPIDocs":"run-script generateAPIDocs && !git add docs/apidocs/* && !git commit -m 'Updated API Docs'", "format":"cfformat run models/**/*.cfc,tests/resources/**/*.cfc,tests/specs/**/*.cfc --overwrite", "format:check":"cfformat check models/**/*.cfc,tests/resources/**/*.cfc,tests/specs/**/*.cfc"