Skip to content

Commit e0ab159

Browse files
committed
add deploy action
1 parent 964aba9 commit e0ab159

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/build_and_deploy.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,28 @@ jobs:
2020
with:
2121
name: "dist"
2222
path: "dist"
23+
24+
deploy-staging:
25+
name: "Deploy 🚜️"
26+
runs-on: "ubuntu-latest"
27+
needs:
28+
- "build"
29+
steps:
30+
- name: "update apt cache"
31+
run: "sudo apt-get update"
32+
- name: "install rclone"
33+
run: "sudo apt-get -y install rclone"
34+
- uses: "actions/download-artifact@v4"
35+
with:
36+
name: "dist"
37+
path: "dist"
38+
- name: "obfuscate password for rclone"
39+
run: "echo \"RCLONE_FTP_PASS=$(echo ${{ secrets.HETZNER_FTP_PASS}} | rclone obscure -)\" >> $GITHUB_ENV"
40+
- name: "sync webspace"
41+
run: "rclone sync dist :ftp:"
42+
env:
43+
RCLONE_FTP_HOST: "${{ vars.HETZNER_FTP_HOST }}"
44+
RCLONE_FTP_USER: "${{ secrets.HETZNER_FTP_USER }}"
45+
RCLONE_FTP_EXPLICIT_TLS: "true"
46+
RCLONE_VERBOSE: 1
47+

0 commit comments

Comments
 (0)