Skip to content

Commit c2f1b77

Browse files
committed
install ssh key
1 parent 4c30912 commit c2f1b77

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ on:
88
- '*'
99
pull_request: {}
1010

11-
env:
12-
PYPI_SSH_KEY: ${{ secrets.AUTOMATE_DEPLOY_SSH_KEY }}
1311

1412
jobs:
1513
lint:
@@ -126,7 +124,16 @@ jobs:
126124
- name: build
127125
run: python -m build
128126

127+
- name: Install SSH key
128+
uses: shimataro/ssh-key-action@v2.7.0
129+
with:
130+
key: ${{ secrets.AUTOMATE_DEPLOY_SSH_KEY }}
131+
known_hosts: |
132+
automate-infra-1.adjust.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDW1dpQo0YbiBaM5bVagST5KN5HlCx0Zo6/tnNTYRQBX
133+
config: |
134+
Host *.adjust.com
135+
User acquired
136+
129137
- name: Upload wheel to PyPI
130-
if: env.PYPI_SSH_KEY
131138
run: |
132139
scp dist/*.whl automate-infra-1.adjust.com:~/pypi/wheels

0 commit comments

Comments
 (0)