Skip to content

Commit 31f8e61

Browse files
committed
merge build and deploy steps
1 parent d73cce5 commit 31f8e61

File tree

1 file changed

+2
-26
lines changed

1 file changed

+2
-26
lines changed

.github/workflows/staging.yml

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ jobs:
7373
run: |
7474
export PATH="./bin:$PATH"
7575
npm run lint:prose
76-
build:
77-
name: Build docs
76+
build-deploy-staging:
77+
name: Build and deploy to staging
7878
runs-on: ubuntu-latest
7979
needs:
8080
- lint
@@ -95,30 +95,6 @@ jobs:
9595
run: npm install
9696
- name: Build project
9797
run: npm run build
98-
- name: Upload artifact
99-
uses: actions/upload-artifact@v2
100-
with:
101-
name: k6-docs
102-
path: public/
103-
deploy-to-staging:
104-
name: Deploy to staging
105-
runs-on: ubuntu-latest
106-
needs:
107-
- lint
108-
- build
109-
steps:
110-
- name: Checkout project
111-
uses: actions/checkout@v2
112-
- name: Use Node.js 12.xs
113-
uses: actions/setup-node@v1
114-
with:
115-
node-version: '12.x'
116-
registry-url: 'https://registry.npmjs.org'
117-
- name: Download artifact
118-
uses: actions/download-artifact@v2
119-
with:
120-
name: k6-docs
121-
path: public/
12298
- name: Install AWS CLI dependencies
12399
run: sudo apt-get update && sudo apt-get -y install python-pip python-dev
124100
- name: Install AWS CLI

0 commit comments

Comments
 (0)