forked from leo-hydraulic/flutter-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (46 loc) · 1.62 KB
/
Copy pathdeploy-to-ssh.yml
File metadata and controls
53 lines (46 loc) · 1.62 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Deploy via SSH
on: [workflow_dispatch]
jobs:
build:
uses: ./.github/workflows/build.yml
deploy:
needs: [build]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Download macOS ARM build
uses: actions/download-artifact@v3
with:
name: build-macos-aarch64
path: ./artifacts
- name: Download macOS AMD64 build
uses: actions/download-artifact@v3
with:
name: build-macos-amd64
path: ./artifacts
- name: Download Windows build
uses: actions/download-artifact@v3
with:
name: build-windows-amd64
# Windows is not in a tarball, so we extract to a separate directory.
path: ./artifacts/windows
- name: Download Linux AMD64 build
uses: actions/download-artifact@v3
with:
name: build-linux-amd64
path: ./artifacts
- name: Set up SSH
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_KEY }}
known_hosts: ${{ secrets.KNOWN_HOSTS }}
- name: Run Conveyor
uses: hydraulic-software/conveyor/actions/build@v9.2
with:
command: make copied-site
# In case the "copy-to" value is sensitive, you can set it up as a repository secret.
# The following line will override the setting of "app.site.copy-to".
extra_flags: -Kapp.site.copy-to="${{ secrets.COPY_TO }}"
signing_key: ${{ secrets.SIGNING_KEY }}
agree_to_license: 1