File tree Expand file tree Collapse file tree 7 files changed +301
-1
lines changed Expand file tree Collapse file tree 7 files changed +301
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : ' deploy-action'
2
+ description : ' Install, Build and deploy hugo app in surge'
3
+ outputs :
4
+ deployed-domain : # id of output
5
+ description : ' Surge deploy domain URL.'
6
+ runs :
7
+ using : ' docker'
8
+ image : ' ../../../Dockerfile'
Original file line number Diff line number Diff line change
1
+ name : ci
2
+
3
+ on :
4
+ pull_request :
5
+ branches :
6
+ - newsite
7
+
8
+ push :
9
+ branches :
10
+ - newsite
11
+
12
+ jobs :
13
+ deploy :
14
+ name : Deploy on surge
15
+ runs-on : ubuntu-latest
16
+ strategy :
17
+ matrix :
18
+ node-version :
19
+ - 10
20
+ python-version :
21
+ - 3.7
22
+ steps :
23
+ - uses : actions/checkout@master
24
+ - name : deploy in surge
25
+ uses : ./.github/actions/deploy-action
26
+ id : deploy
27
+ env :
28
+ SURGE_TOKEN : ${{ secrets.SURGE_TOKEN}}
29
+ SURGE_LOGIN : ${{ secrets.SURGE_LOGIN}}
30
+ REF : ${{ github.ref}}
31
+ - name : Get the deployed-domain
32
+ run : echo "The deployed-domain is ${{ steps.deploy.outputs.deployed-domain }}"
Original file line number Diff line number Diff line change 1
- .DS_Store
1
+ * .swp
2
+ * .pyd
3
+ * .so
4
+ * .o
5
+ * .lo
6
+ * .la
7
+ * ~
8
+ * .bak
9
+ * .swp
10
+ . \# *
11
+ .deps
12
+ .libs
13
+ .tox
14
+ * /** /_build
15
+ * /** /build
16
+ __pycache__
17
+ ** /* .egg-info
18
+ /dist
19
+
20
+
21
+ .mypy_cache
22
+ * /* .pyc
23
+ * /* .so *
24
+ * /** /__pycache__
25
+ * /** /* .dylib *
26
+ * /** /* .pyc
27
+ * /** /* .pyd
28
+ * /** /* .so *
29
+ * /** /** /* .pyc
30
+ * /** /** /** /* .pyc
31
+ * /** /** /** /** /* .pyc
32
+
33
+ * /** /make.dat
34
+
35
+ * .egg-info
36
+ * .egg
37
+ * build /
38
+ .tox
39
+ .coverage
40
+ * .DS_Store
41
+ * .sass-cache
42
+ * .map
43
+ .ropeproject /
44
+ .ruby-version
45
+ dist /
46
+ bower_components /
47
+ node_modules
48
+ npm-debug.log
49
+ package-lock.json
50
+
51
+
52
+ # IPython notebook checkpoints
53
+ .ipynb_checkpoints
54
+
55
+ # Editor temporaries
56
+ * .swn
57
+ * .swo
58
+ * .swp
59
+ * .swm
60
+ * ~
61
+
62
+ # macOS dir files
63
+ .DS_Store
64
+
65
+ # Symbolic files
66
+ tools /shared /cwrap_common.py
67
+
68
+ # Ninja files
69
+ .ninja_deps
70
+ .ninja_log
71
+ compile_commands.json
72
+ * .egg-info /
73
+ docs /source /scripts /activation_images /
74
+
75
+ # # General
76
+
77
+ # Compiled Object files
78
+ * .slo
79
+ * .lo
80
+ * .o
81
+ * .cuo
82
+ * .obj
83
+
84
+ # Compiled Dynamic libraries
85
+ * .so
86
+ * .dylib
87
+ * .dll
88
+
89
+ # Compiled Static libraries
90
+ * .lai
91
+ * .la
92
+ * .a
93
+ * .lib
94
+
95
+ # Compiled protocol buffers
96
+ * .pb.h
97
+ * .pb.cc
98
+ * _pb2.py
99
+
100
+ # Compiled python
101
+ * .pyc
102
+ * .pyd
103
+
104
+ # Compiled MATLAB
105
+ * .mex *
106
+
107
+ # IPython notebook checkpoints
108
+ .ipynb_checkpoints
109
+
110
+ # Editor temporaries
111
+ * .swn
112
+ * .swo
113
+ * .swp
114
+ * ~
115
+
116
+ # Sublime Text settings
117
+ * .sublime-workspace
118
+ * .sublime-project
119
+
120
+ # Eclipse Project settings
121
+ * . * project
122
+ .settings
123
+
124
+ # QtCreator files
125
+ * .user
126
+
127
+ # PyCharm files
128
+ .idea
129
+
130
+ # OSX dir files
131
+ .DS_Store
132
+
133
+ # GDB history
134
+ .gdb_history
135
+
136
+ # # Caffe2
137
+
138
+ # build, distribute, and bins (+ python proto bindings)
139
+ build
140
+ build_host_protoc
141
+ build_android
142
+ build_ios
143
+ /build_ *
144
+ .build_debug /*
145
+ .build_release /*
146
+ distribute /*
147
+ * .testbin
148
+ * .bin
149
+ cmake_build
150
+ .cmake_build
151
+ gen
152
+ .setuptools-cmake-build
153
+ .pytest_cache
154
+ aten /build /*
155
+
156
+ # Bram
157
+ plsdontbreak
158
+
159
+ # Generated documentation
160
+ docs /_site
161
+ docs /gathered
162
+ _site
163
+ doxygen
164
+ docs /dev
165
+
166
+ # LevelDB files
167
+ * .sst
168
+ * .ldb
169
+ LOCK
170
+ CURRENT
171
+ MANIFEST- *
172
+
173
+ # generated version file
174
+ caffe2 /version.py
175
+
176
+ # setup.py intermediates
177
+ .eggs
178
+ caffe2.egg-info
179
+
180
+ # Atom/Watchman required file
181
+ .watchmanconfig
182
+
183
+ # Files generated by CLion
184
+ cmake-build-debug
185
+
186
+ # Files generated by ctags
187
+ CTAGS
188
+ tags
189
+ TAGS
190
+
191
+ # BEGIN NOT-CLEAN-FILES (setup.py handles this marker. Do not change.)
192
+ #
193
+ # Below files are not deleted by "setup.py clean".
194
+
195
+ # Visual Studio Code files
196
+ .vscode
197
+ .vs
198
+
199
+ # YouCompleteMe config file
200
+ .ycm_extra_conf.py
201
+
202
+ # Files generated when a patch is rejected
203
+ * .orig
204
+ * .rej
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ hugo
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ npm install -g surge
4
+
5
+ echo " REF value is ${REF} "
6
+
7
+ PR_NUMBER=" $( echo $REF | cut -d' /' -f3) "
8
+ echo " PR_NUMBER: $PR_NUMBER "
9
+
10
+
11
+ surge --project " ./public" --domain " pr-${PR_NUMBER} -numpy.org-newsite.surge.sh" ;
12
+
13
+ echo ::set-output name=deployed-domain::" pr-${PR_NUMBER} -numpy.org-newsite.surge.sh"
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ curl -s https://api.github.com/repos/gohugoio/hugo/releases/latest \
4
+ | grep " browser_download_url.*hugo_[^extended].*_Linux-64bit\.tar\.gz" \
5
+ | cut -d " :" -f 2,3 \
6
+ | tr -d \" \
7
+ | wget -qi -
8
+
9
+ tarball=" $( find . -name " *Linux-64bit.tar.gz" ) "
10
+
11
+ tar -xzf $tarball
12
+
13
+ chmod +x hugo
14
+
15
+ mv hugo /usr/local/bin/
16
+
17
+ location=" $( which hugo) "
18
+ echo " Hugo binary location: $location "
19
+
20
+ version=" $( hugo version) "
21
+ echo " Hugo binary version: $version "
Original file line number Diff line number Diff line change
1
+ FROM node:10-alpine
2
+ ADD . ./app
3
+ WORKDIR /app
4
+
5
+ RUN apk add --no-cache curl
6
+ RUN apk add --no-cache wget
7
+ RUN apk add --no-cache bash
8
+
9
+ RUN chmod +x .scripts/install.sh
10
+ RUN chmod +x .scripts/build.sh
11
+ RUN chmod +x .scripts/deploy.sh
12
+
13
+ RUN .scripts/install.sh
14
+ RUN .scripts/build.sh
15
+
16
+ RUN echo ${REF}
17
+ RUN echo "$REF"
18
+ RUN export PR_NUMBER=$(echo ${REF} | cut -d'/' -f3)
19
+
20
+ ENTRYPOINT .scripts/deploy.sh; /bin/bash
You can’t perform that action at this time.
0 commit comments