Skip to content

Commit af3dc8f

Browse files
author
Martin Stadler
committed
Add SSH key to doc action
1 parent c7b082e commit af3dc8f

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

.github/workflows/gh-pages.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,19 @@ jobs:
2626
- name: Install uv
2727
uses: astral-sh/setup-uv@v7
2828

29+
- uses: webfactory/ssh-agent@v0.9.0
30+
with:
31+
ssh-private-key: |
32+
${{ secrets.GITLAB_TIQI_ZEDBOARD_SSH_KEY }}
33+
${{ secrets.GITLAB_TIQI_RPC_SSH_KEY }}
34+
35+
- name: Configure SSH for GitLab
36+
env:
37+
SSH_KEY: ${{ secrets.GITLAB_TIQI_ZEDBOARD_SSH_KEY }}
38+
run: |
39+
mkdir -p ~/.ssh && chmod 700 ~/.ssh
40+
ssh-keyscan gitlab.phys.ethz.ch >> ~/.ssh/known_hosts
41+
2942
- name: Sync build dependencies
3043
run: uv sync --no-dev --group docs
3144

.github/workflows/release.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,7 @@ jobs:
4141
openssh-client git ca-certificates curl binutils gh
4242
4343
- name: Install uv
44-
run: |
45-
curl -fsSL https://astral.sh/uv/install.sh | sh
46-
echo "$HOME/.local/bin" >> $GITHUB_PATH
44+
uses: astral-sh/setup-uv@v7
4745

4846
- uses: webfactory/ssh-agent@v0.9.0
4947
with:

0 commit comments

Comments
 (0)