Skip to content

Commit a3b933e

Browse files
committed
Combine jobs and only deploy if branch is master.
1 parent b7bfb1d commit a3b933e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

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

+2-5
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@ 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:
21-
- name: Deploy to https://github.com/creativecommons/creativecommons.github.io
17+
- name: Deploy to production
18+
if: ${{ github.ref == "master" }}
2219
run: |
2320
pipenv run lektor deploy ghpages --username ${{ secrets.LEKTOR_DEPLOY_USERNAME }} --password ${{ secrets.LEKTOR_DEPLOY_PASSWORD }}

0 commit comments

Comments
 (0)