Skip to content

Commit b7bfb1d

Browse files
committed
Separate build and deploy steps.
1 parent 7076de3 commit b7bfb1d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/lektor-build-deploy.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Build and Deploy CC Open Source
22
on: [push]
33
jobs:
4-
build-and-deploy:
4+
build:
55
runs-on: ubuntu-latest
66
steps:
77
- uses: actions/checkout@v1
@@ -14,6 +14,10 @@ jobs:
1414
pip install pipenv
1515
pipenv install
1616
pipenv run lektor build -f webpack
17+
deploy:
18+
runs-on: ubuntu-latest
19+
needs: build
20+
steps:
1721
- name: Deploy to https://github.com/creativecommons/creativecommons.github.io
1822
run: |
1923
pipenv run lektor deploy ghpages --username ${{ secrets.LEKTOR_DEPLOY_USERNAME }} --password ${{ secrets.LEKTOR_DEPLOY_PASSWORD }}

0 commit comments

Comments
 (0)