There was an error while loading. Please reload this page.
1 parent 964aba9 commit e0ab159Copy full SHA for e0ab159
1 file changed
.github/workflows/build_and_deploy.yml
@@ -20,3 +20,28 @@ jobs:
20
with:
21
name: "dist"
22
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