Skip to content

Commit 8165aff

Browse files
committed
copy with tar, key saved in file
1 parent 7f56d80 commit 8165aff

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/default__deploy-nginx.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,16 @@ jobs:
6666
echo "Content after deletion: $(pwd)"
6767
ls -la
6868
69+
- name: Setup SSH key
70+
run: |
71+
mkdir -p ~/.ssh
72+
echo "${{ secrets.REMOTE_KEY_ED25519 }}" > ~/.ssh/id_ed25519
73+
chmod 600 ~/.ssh/id_ed25519
74+
6975
- name: Copy dist via tar over ssh
7076
run: |
7177
tar cf - -C dist . | ssh \
72-
-i <(echo "${{ secrets.REMOTE_KEY_ED25519 }}") \
78+
-i ~/.ssh/id_ed25519 \
7379
-p ${{ secrets.REMOTE_PORT }} \
7480
-o StrictHostKeyChecking=no \
7581
${{ secrets.REMOTE_USERNAME }}@${{ secrets.REMOTE_HOST }} \

src/utils/gradients.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const shades = [50, 100, 200] as ShadeKeys[];
1212
const directions = ['to right', 'to bottom', '45deg'];
1313

1414
// to support white
15+
// Todo: for cached build should depend on title arg
1516
const getRandomColor = () => {
1617
const rndColor = rnd(colors);
1718
return rndColor === 'white' ? rndColor : twColors[rndColor][rnd(shades)];

0 commit comments

Comments
 (0)