Skip to content

Commit

Permalink
chore(CI): Update workflow for API docs
Browse files Browse the repository at this point in the history
  • Loading branch information
elpete committed Nov 7, 2020
1 parent c901892 commit 7e28504
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Expand Up @@ -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
Expand All @@ -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 }}"
# DEST_DIR: "${{ github.repository }}/${{ steps.current_version.version }}"
2 changes: 1 addition & 1 deletion box.json
Expand Up @@ -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"
Expand Down

0 comments on commit 7e28504

Please sign in to comment.