-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (28 loc) · 1 KB
/
stable.yml
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
name: stable
on:
push:
branches:
- stable
jobs:
stable:
name: Build and publish the stable channel
runs-on: ubuntu-latest
steps:
- name: Checkout the Git repository
uses: actions/checkout@v2
- name: Install missing tools
run: |
sudo apt-get install bsdtar
- name: Build packages
run: |
./scripts/build-repo package build https://toltec.delab.re/stable
- name: Transfer packages and index
run: |
mkdir -p private
chmod 700 private
echo "${{ secrets.SSH_PRIVATE_KEY }}" > private/id_rsa
echo "${{ secrets.SSH_KNOWN_HOSTS }}" > private/known_hosts
chmod 600 private/*
rsync -avz \
-e "ssh -i private/id_rsa -o UserKnownHostsFile=private/known_hosts" \
build/repo/ "${{ secrets.REMOTE }}":/srv/toltec/stable