-
-
Notifications
You must be signed in to change notification settings - Fork 425
36 lines (30 loc) · 840 Bytes
/
mirror-tangled.yml
File metadata and controls
36 lines (30 loc) · 840 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
name: mirror
on:
push:
branches:
- main
tags:
- '*'
permissions:
contents: read
jobs:
mirror:
name: 🕸️ Mirror to Tangled
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
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