Commit fc9b00b 1 parent 7d9d87b commit fc9b00b Copy full SHA for fc9b00b
File tree 6 files changed +44
-5
lines changed
6 files changed +44
-5
lines changed Original file line number Diff line number Diff line change
1
+ name : " Deploy to GitHub pages"
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ - github-pages
8
+
9
+ workflow_dispatch :
10
+
11
+ permissions :
12
+ contents : write
13
+
14
+ concurrency :
15
+ group : " pages"
16
+ cancel-in-progress : false
17
+
18
+ jobs :
19
+ build-and-deploy :
20
+ runs-on : ubuntu-latest
21
+ steps :
22
+ - uses : actions/checkout@v3
23
+ - name : Echo version
24
+ run : |
25
+ version=$(git rev-parse HEAD)
26
+ echo "Replacing version number in *.html with $version"
27
+ - name : Replace version
28
+ run : |
29
+ mkdir production
30
+ cp -R -v *.html css js production
31
+ version=$(git rev-parse HEAD)
32
+ echo "Replacing version number in *.html with $version"
33
+ perl -pi -e 's/{VERSION}/'$version'/g' production/*.html
34
+ - name : Deploy to GitHub Pages
35
+ id : deployment
36
+ uses : JamesIves/github-pages-deploy-action@v4
37
+ with :
38
+ folder : ./production
Original file line number Diff line number Diff line change
1
+ Here comes the production code.
Original file line number Diff line number Diff line change 8
8
< link rel ="stylesheet " type ="text/css " href ="css/virtual_keyboard.css?version={VERSION} " />
9
9
< link rel ="icon " type ="image/png " href ="icon.png "/>
10
10
11
- < title > Interactive Vim tutorial</ title >
11
+ < title > OpenVim - Interactive Vim tutorial</ title >
12
12
13
13
<!-- GENERAL (mostly) -->
14
14
< script type ="text/Javascript " src ="js/engine/messager.js?version={VERSION} "> </ script >
58
58
59
59
< body >
60
60
< div class ="navigation ">
61
- < a href ="tutorial .html " class ="selected "> Tutorial</ a >
61
+ < a href ="index .html " class ="selected "> Tutorial</ a >
62
62
< a href ="sandbox.html "> Practice</ a >
63
63
< a href ="development.html "> Development</ a >
64
64
<!--
Original file line number Diff line number Diff line change 54
54
< body >
55
55
< div class ="navigation ">
56
56
< a href ="development.html "> Home</ a >
57
- < a href ="tutorial .html "> Tutorial</ a >
57
+ < a href ="index .html "> Tutorial</ a >
58
58
< a href ="problems.html " class ="selected "> Problems</ a >
59
59
< a href ="sandbox.html "> Sandbox</ a >
60
60
< a href ="twosandboxes.html "> Two sandboxes</ a >
Original file line number Diff line number Diff line change 55
55
56
56
< body >
57
57
< div class ="navigation ">
58
- < a href ="tutorial .html "> Tutorial</ a >
58
+ < a href ="index .html "> Tutorial</ a >
59
59
< a href ="sandbox.html " class ="selected "> Practice</ a >
60
60
< a href ="development.html "> Development</ a >
61
61
<!--
Original file line number Diff line number Diff line change 50
50
< body >
51
51
< div class ="navigation ">
52
52
< a href ="development.html "> Home</ a >
53
- < a href ="tutorial .html "> Tutorial</ a >
53
+ < a href ="index .html "> Tutorial</ a >
54
54
< a href ="sandbox.html "> Sandbox</ a >
55
55
< a href ="twosandboxes.html " class ="selected "> Two sandboxes</ a >
56
56
< a href ="tests.html "> Testing</ a >
You can’t perform that action at this time.
0 commit comments