Skip to content

Commit 5673e69

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

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

.github/workflows/gh-pages.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,18 @@ 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+
34+
- name: Configure SSH for GitLab
35+
env:
36+
SSH_KEY: ${{ secrets.GITLAB_TIQI_ZEDBOARD_SSH_KEY }}
37+
run: |
38+
mkdir -p ~/.ssh && chmod 700 ~/.ssh
39+
ssh-keyscan gitlab.phys.ethz.ch >> ~/.ssh/known_hosts
40+
2941
- name: Sync build dependencies
3042
run: uv sync --no-dev --group docs
3143

.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)