Skip to content

Commit 764d1cf

Browse files
authored
Merge GHA build and deploy workflows (#9)
1 parent d3f7073 commit 764d1cf

File tree

2 files changed

+26
-32
lines changed

2 files changed

+26
-32
lines changed

.github/workflows/build_test_and_lint.yml renamed to .github/workflows/build_and_deploy.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,29 @@ jobs:
5858
--health-timeout=5s
5959
--health-retries=5
6060
61+
deploy:
62+
needs: build-test-and-lint
63+
if: github.ref == 'refs/heads/main'
64+
runs-on: ubuntu-latest
65+
66+
steps:
67+
- name: Checkout code
68+
uses: actions/checkout@v3
69+
70+
- name: Install uv
71+
uses: astral-sh/setup-uv@v5
72+
73+
- name: Set up SSH key
74+
uses: webfactory/ssh-agent@v0.9.0
75+
with:
76+
ssh-private-key: ${{ secrets.DEPLOY_SSH_KEY }}
77+
78+
- name: Set up ssh
79+
run: |
80+
mkdir -p ~/.ssh
81+
echo "${{ secrets.DEPLOY_SSH_KEY }}" > ~/.ssh/id_ed25519
82+
chmod 600 ~/.ssh/id_ed25519
83+
ssh-keyscan "internal.europython.eu" > ~/.ssh/known_hosts
84+
85+
- name: Run deployment
86+
run: make deploy/app

.github/workflows/deploy.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)