-
Notifications
You must be signed in to change notification settings - Fork 84
37 lines (32 loc) · 1.01 KB
/
develop.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
29
30
31
32
33
34
35
36
37
name: Develop Branch Workflow
on:
push:
branches:
- develop
paths-ignore:
- '.github/workflows/**'
workflow_dispatch:
jobs:
Build:
uses: ./.github/workflows/build.yml
secrets: inherit
Upload:
needs: Build
runs-on: ubuntu-latest
steps:
- name: Install SSH key
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.ASSETS_PRIVATE_KEY }}
- name: Download artifacts from build
uses: actions/download-artifact@v2
with:
path: dist
- name: Upload assets via SCP
env:
HOST: ${{ secrets.ASSETS_HOST }}
PORT: ${{ secrets.ASSETS_PORT }}
USER: ${{ secrets.ASSETS_USER }}
run: |
scp -P $PORT -o StrictHostKeyChecking=no -r dist/* $USER@$HOST:/files/
shell: bash