-
Notifications
You must be signed in to change notification settings - Fork 10
48 lines (41 loc) · 1.33 KB
/
json_api.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
38
39
40
41
42
43
44
45
46
47
48
name: Dev API
on:
workflow_dispatch:
push:
branches: [ dev, ci/** ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: flucoma/actions/env@v4
- uses: flucoma/actions/docs@v4
with:
target: 'MAKE_RAW_REF'
- uses: dev-drprasad/[email protected]
with:
delete_release: true # default: false
tag_name: api # tag name to delete
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Setup SSH
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH }}
known_hosts: 'placeholder'
- name: Adding Known Hosts
run: |
mkdir -p ~/.ssh
ssh-keyscan -H ${{ secrets.DO_IP }} >> ~/.ssh/known_hosts
- name: package and upload
uses: softprops/action-gh-release@v1
with:
name: FluCoMa Docs API
body: "A JSON that can be accessed to derive parameters/args for objects. The build hash is ${{ github.sha }}"
files: 'build/flucoma.api.json'
prerelease: true
tag_name: api
draft: false
- name: Upload To Droplet
run: |
rsync -avz --delete --no-times --no-o --no-g --no-perms ./build/api.json james@${{ secrets.DO_IP }}:/home/learn/www/