parent
f5fd4ae4c3
commit
e18c76f7bd
1 changed files with 2 additions and 5 deletions
|
|
@ -32,18 +32,15 @@ jobs:
|
|||
cd go-vanityurls
|
||||
ln -sf ../vanity.yaml ./vanity.yaml
|
||||
go run main.go
|
||||
- name: Install rclone
|
||||
run: apt update && apt install rclone
|
||||
- name: Configure rclone
|
||||
- name: Upload HTML
|
||||
env:
|
||||
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
SSH_PUBLIC_KEY: ${{ secrets.SSH_PUBLIC_KEY }}
|
||||
run: |
|
||||
apt update && apt install rclone
|
||||
mkdir ~/.ssh
|
||||
cat > ~/.ssh/id_ed25519.pub <<< $SSH_PUBLIC_KEY
|
||||
cat > ~/.ssh/id_ed25519 <<< $SSH_PRIVATE_KEY
|
||||
mkdir ~/.config/rclone
|
||||
cat > ~/.config/rclone/config.conf <<< $"[bridget]\ntype = sftp\nhost = bridget\nuser = www-data"
|
||||
- name: Upload HTML
|
||||
run: |
|
||||
rclone sync --delete-during -vv ./go-vanity/public bridget:/var/www/vanity
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue