This repository was archived by the owner on Aug 21, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 10 files changed +49
-202
lines changed Expand file tree Collapse file tree 10 files changed +49
-202
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: Deploy
3
3
on :
4
4
push :
5
5
branches :
6
- - release
6
+ - master
7
7
8
8
jobs :
9
9
deploy :
@@ -16,14 +16,39 @@ jobs:
16
16
with :
17
17
ruby-version : 2.7
18
18
19
+ - name : Setup Nodejs
20
+ uses : actions/setup-node@v1
21
+ with :
22
+ node-version : ' 12.x'
23
+
24
+ - name : Get yarn cache directory path
25
+ id : yarn-cache-dir-path
26
+ run : echo "::set-output name=dir::$(yarn cache dir)"
27
+
28
+ - name : Use cached node_modules
29
+ uses : actions/cache@v1
30
+ id : yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
31
+ with :
32
+ path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
33
+ key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
34
+ restore-keys : |
35
+ ${{ runner.os }}-yarn-
36
+
19
37
- name : Increasing the amount of inotify watchers
20
38
run : echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
21
39
22
- - name : Deploy
40
+ - name : Precompile
41
+ env :
42
+ RAILS_ENV : production
43
+ RAILS_MASTER_KEY : ${{ secrets.RAILS_MASTER_KEY }}
23
44
run : |
24
45
sudo apt-get -yqq install libpq-dev
25
- sudo apt-get install expect
26
46
gem install bundler:2.1.4
27
- bundle config path vendor/bundle
28
47
bundle install --jobs 4 --retry 3
29
- bin/exp ${{ secrets.PAYIN_SSH_PWD }} bundle exec mina deploy production
48
+ yarn install
49
+ bin/rails assets:precompile
50
+
51
+ - name : Deploy
52
+ run : |
53
+ sudo apt-get install expect
54
+ bin/deploy ${{ secrets.PAYIN_SSH_PWD }} bundle exec mina deploy production
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 4
4
pull_request :
5
5
branches :
6
6
- develop
7
- - master
8
7
9
8
jobs :
10
9
test :
Original file line number Diff line number Diff line change 25
25
/config /credentials /development.key
26
26
27
27
# Ingore development & test packs
28
- /public /packs-dev
29
- /public /packs-test
30
- /public /assets-dev
28
+ /public /packs
29
+ /public /packs
30
+ /public /assets
31
31
32
32
# test result
33
33
/coverage
Original file line number Diff line number Diff line change 1
1
# Payin
2
2
3
- ![ Lint] ( https://github.com/an-lee/payin/workflows/Lint/badge.svg ) ![ Test] ( https://github.com/an-lee/payin/workflows/Test/badge.svg ) ![ Precompile ] ( https://github.com/an-lee/payin/workflows/Precompile/badge.svg ) ![ Deploy] ( https://github.com/an-lee/payin/workflows/Deploy/badge.svg )
3
+ ![ Lint] ( https://github.com/an-lee/payin/workflows/Lint/badge.svg ) ![ Test] ( https://github.com/an-lee/payin/workflows/Test/badge.svg ) ![ Deploy] ( https://github.com/an-lee/payin/workflows/Deploy/badge.svg )
4
4
5
5
[ Payin] ( https://payin.xin ) is a Mixin Messenger Bot providing smooth multi-sign paying experience.
6
6
Original file line number Diff line number Diff line change 13
13
# signer_uuids :uuid default("{}"), is an Array
14
14
# status :string
15
15
# threshold :integer
16
+ # transaction_hash :string
16
17
# created_at :datetime not null
17
18
# updated_at :datetime not null
18
19
# asset_id :uuid
24
25
# index_multisig_transactions_on_multisig_account_id (multisig_account_id)
25
26
# index_multisig_transactions_on_receiver_uuids (receiver_uuids)
26
27
# index_multisig_transactions_on_sender_uuids (sender_uuids)
28
+ # index_multisig_transactions_on_transaction_hash (transaction_hash)
27
29
# index_multisig_transactions_on_user_id (user_id)
28
30
#
29
31
class MultisigTransaction < ApplicationRecord
File renamed without changes.
Original file line number Diff line number Diff line change 105
105
command %(journalctl -f -u sidekiq)
106
106
end
107
107
108
- desc 'Precompile locally '
108
+ desc 'Rsync precompiled assets from local to remote /temp '
109
109
task :rsync_packs_from_local_to_tmp do
110
110
run :local do
111
111
command %(echo "-----> rsync public/assets to #{ fetch ( :tmp_path ) } /public/assets")
116
116
end
117
117
end
118
118
119
- desc 'Rsync packs from tmp'
119
+ desc 'Rsync packs from / tmp to /current '
120
120
task :rsync_from_tmp_to_current do
121
121
command %(echo "-----> rsync #{ fetch ( :tmp_path ) } /public/assets/ to #{ fetch ( :current_path ) } /public/assets")
122
122
command %(rsync #{ fetch ( :tmp_path ) } /public/assets/ #{ fetch ( :current_path ) } /public/assets/)
125
125
command %(rsync #{ fetch ( :tmp_path ) } /public/packs/ #{ fetch ( :current_path ) } /public/packs/)
126
126
end
127
127
128
-
129
128
desc 'Deploys the current version to the server.'
130
129
task :deploy do
131
130
# uncomment this line to make sure you pushed your local branch to the remote origin
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ default: &default
11
11
12
12
# Additional paths webpack should lookup modules
13
13
# ['app/assets', 'engine/foo/app/assets']
14
- resolved_paths : []
14
+ resolved_paths : ['app/assets' ]
15
15
16
16
# Reload manifest.json on all requests so we reload latest compiled packs
17
17
cache_manifest : false
@@ -59,7 +59,7 @@ development:
59
59
check_yarn_integrity : true
60
60
61
61
# Compile development packs to a separate directory
62
- public_output_path : packs-dev
62
+ # public_output_path: packs-dev
63
63
64
64
# Reference: https://webpack.js.org/configuration/dev-server/
65
65
dev_server :
You can’t perform that action at this time.
0 commit comments