Skip to content

Commit

Permalink
install ssh key
Browse files Browse the repository at this point in the history
  • Loading branch information
saber-solooki committed Jan 7, 2025
1 parent 4c30912 commit c2f1b77
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ on:
- '*'
pull_request: {}

env:
PYPI_SSH_KEY: ${{ secrets.AUTOMATE_DEPLOY_SSH_KEY }}

jobs:
lint:
Expand Down Expand Up @@ -126,7 +124,16 @@ jobs:
- name: build
run: python -m build

- name: Install SSH key
uses: shimataro/ssh-key-action@v2.7.0
with:
key: ${{ secrets.AUTOMATE_DEPLOY_SSH_KEY }}
known_hosts: |
automate-infra-1.adjust.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDW1dpQo0YbiBaM5bVagST5KN5HlCx0Zo6/tnNTYRQBX
config: |
Host *.adjust.com
User acquired
- name: Upload wheel to PyPI
if: env.PYPI_SSH_KEY
run: |
scp dist/*.whl automate-infra-1.adjust.com:~/pypi/wheels

0 comments on commit c2f1b77

Please sign in to comment.