Skip to content

Commit 0be20be

Browse files
author
a.pirogov
committed
added basic workflow to deploy demo repo (not complete yet)
1 parent c3e73ef commit 0be20be

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ jobs:
138138
# ----
139139

140140
deploy_demo:
141-
# needs: docs
142-
# if: startswith(github.ref, 'refs/tags/v')
141+
needs: docs
142+
if: startswith(github.ref, 'refs/tags/v')
143143
secrets: inherit
144144
uses: "./.github/workflows/deploy_demo.yml"
145145

.github/workflows/deploy_demo.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: Deploy the demo repository
2+
# TODO: could use current version tag of template to match the demo
3+
# and think how to preserve old branches / docs
24

35
on: [workflow_dispatch, workflow_call]
46

@@ -16,9 +18,11 @@ jobs:
1618
- name: Prepare SSH
1719
uses: webfactory/ssh-agent@v0.7.0
1820
with:
21+
# NOTE: generated private key, stored repo secret
22+
# (matching public key is registered Deployment Key in target Github repo)
1923
ssh-private-key: ${{ secrets.SSH_DEPLOY_KEY }}
2024

21-
- name: Prepare git
25+
- name: Set git author
2226
run: |
2327
git config --global user.email "deploy-fair-python-cookiecutter@example.com"
2428
git config --global user.name "Deployment Bot"

0 commit comments

Comments
 (0)