-
-
Notifications
You must be signed in to change notification settings - Fork 425
37 lines (31 loc) · 896 Bytes
/
mirror-tangled.yml
File metadata and controls
37 lines (31 loc) · 896 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: mirror
on:
push:
branches:
- main
tags:
- '*'
permissions:
contents: read
jobs:
mirror:
name: 🕸️ Mirror to Tangled
if: ${{ github.repository == 'npmx-dev/npmx.dev' }}
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
- name: 🔑 Configure SSH
env:
TANGLED_SSH_KEY: ${{ secrets.TANGLED_SSH_KEY }}
run: |
mkdir -p ~/.ssh
echo "$TANGLED_SSH_KEY" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
ssh-keyscan -t ed25519 tangled.org >> ~/.ssh/known_hosts 2>/dev/null
- name: ⬆︎ Push to Tangled
run: |
git remote add tangled git@tangled.org:npmx.dev/npmx.dev
git push tangled main --force
git push tangled --tags --force