Skip to content

Commit

Permalink
chore: update docs deploy to correctly version
Browse files Browse the repository at this point in the history
  • Loading branch information
jkeen committed Mar 21, 2024
1 parent 3d20c80 commit 4c5c692
Show file tree
Hide file tree
Showing 4 changed files with 256 additions and 266 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,16 @@ jobs:
- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Set Version Path
run: echo "::set-env name=ADDON_DOCS_VERSION_PATH::${GITHUB_REF##*/}"

- name: Set Latest
run: echo "::set-env name=ADDON_DOCS_UPDATE_LATEST::true"

- name: Build docs
run: pnpm run build
working-directory: 'docs'

- run: echo "ADDON_DOCS_VERSION_PATH=${GITHUB_REF##*/}" >> $GITHUB_ENV
- run: echo "ADDON_DOCS_UPDATE_LATEST=true" >> $GITHUB_ENV
- name: Deploy
env:
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
Expand Down
6 changes: 0 additions & 6 deletions docs/config/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@ module.exports = function (deployTarget) {
git: {
repo: '[email protected]:jkeen/ember-stereo.git',
},
// 'git-ci': {
// userName: 'deploy',
// userEmail: 'deploy@circleci',
// deployKeyPath: '/home/circleci/.ssh/id_rsa_11a220e35b2e16b1d43e05e51c5f4c26',
// },
// include other plugin configuration that applies to all deploy targets here
};

if (deployTarget === 'development') {
Expand Down
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"broccoli-asset-rev": "^3.0.0",
"ember-auto-import": "^2.6.3",
"ember-cli": "~4.8.0",
"ember-cli-addon-docs": "^4.2.2",
"ember-cli-addon-docs": "^6.0.0",
"ember-cli-addon-docs-yuidoc": "^1.0.0",
"ember-cli-app-version": "^5.0.0",
"ember-cli-babel": "^7.26.11",
Expand Down
Loading

0 comments on commit 4c5c692

Please sign in to comment.