Skip to content

Commit aa8ffd1

Browse files
Tweak deploy config
1 parent 9881121 commit aa8ffd1

File tree

3 files changed

+9
-17
lines changed

3 files changed

+9
-17
lines changed

.github/workflows/ci-cd.yml

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -122,32 +122,25 @@ jobs:
122122
deploy-app:
123123
name: Deploy app
124124
needs: [lint, test-addon-floating, test-addon-locked, test-compatibility]
125+
env:
126+
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
125127
runs-on: ubuntu-latest
126128
timeout-minutes: 7
127129
# Only run on pushes to the default branch
128130
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
129131
steps:
130132
- name: Check out a copy of the repo
131-
uses: actions/checkout@v3
132-
133-
- name: Set up Git user
134-
run: |
135-
# Set up a Git user for committing
136-
git config --global user.name "GitHub Actions"
137-
git config --global user.email "[email protected]"
138-
139-
# Copy the Git Auth from the local config
140-
git config --global "http.https://github.com/.extraheader" \
141-
"$(git config --local --get http.https://github.com/.extraheader)"
142-
133+
uses: actions/checkout@v4
134+
with:
135+
token: ${{ secrets.GITHUB_TOKEN }}
143136
- name: Use Node.js ${{ env.NODE_VERSION }}
144-
uses: actions/setup-node@v3
137+
uses: actions/setup-node@v4
145138
with:
146139
node-version: ${{ env.NODE_VERSION }}
147140
cache: pnpm
148141

149142
- name: Install dependencies
150-
run: pnpm i --frozen-lockfile
143+
run: pnpm install --no-lockfile
151144

152145
- name: Deploy
153-
run: pnpm deploy
146+
run: pnpm ember deploy production

config/deploy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module.exports = function (deployTarget) {
44
let ENV = {
55
build: {},
66
git: {
7-
repo: 'https://github.com/ember-learn/ember-cli-addon-docs.git',
7+
repo: 'git@github.com:ember-learn/ember-cli-addon-docs.git',
88
},
99
};
1010

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
},
1616
"scripts": {
1717
"build": "ember build --environment=production",
18-
"deploy": "ember deploy production",
1918
"lint": "concurrently \"npm:lint:*(!fix)\" --names \"lint:\"",
2019
"lint:css": "stylelint \"**/*.css\"",
2120
"lint:css:fix": "concurrently \"npm:lint:css -- --fix\"",

0 commit comments

Comments
 (0)