-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (32 loc) · 1.21 KB
/
deploy.yml
File metadata and controls
41 lines (32 loc) · 1.21 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
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
name: Deploy
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2-beta
with:
node-version: '12'
- name: deploy!
run: |
export SERVER_PK_KEY="${{ secrets.SERVER_PK_KEY }}"
export NODE_BIN_PATH="${{ secrets.NODE_BIN_PATH }}"
export RUBY_BIN_PATH="${{ secrets.RUBY_BIN_PATH }}"
export SERVER_USER="${{ secrets.SERVER_USER }}"
export SERVER_HOST="${{ secrets.SERVER_HOST }}"
export PROJECT_PATH="${{ secrets.PROJECT_PATH }}"
export RAILS_ENV="${{ secrets.RAILS_ENV }}"
export OPENODE_TOKEN="${{ secrets.OPENODE_TOKEN }}"
export OPENODE_SITE_NAME="${{ secrets.OPENODE_SITE_NAME }}"
npm install -g openode
sh scripts/deploy.sh