26
26
matrix :
27
27
os :
28
28
- ' ubuntu-18.04'
29
+ - ' ubuntu-16.04'
29
30
- ' macos-latest'
30
31
- ' windows-latest'
31
32
steps :
@@ -56,19 +57,19 @@ jobs:
56
57
- run : npm ci
57
58
58
59
- name : Run prettier
59
- if : startsWith(matrix.os, 'ubuntu')
60
+ if : startsWith(matrix.os, 'ubuntu-18.04 ')
60
61
run : npm run format:check
61
62
62
63
- name : Run eslint
63
- if : startsWith(matrix.os, 'ubuntu')
64
+ if : startsWith(matrix.os, 'ubuntu-18.04 ')
64
65
run : npm run lint
65
66
66
67
- run : npm test
67
68
68
69
- name : Upload test coverage as artifact
69
- uses : actions/upload-artifact@v1
70
+ uses : actions/upload-artifact@v2
70
71
with :
71
- name : coverage
72
+ name : coverage-${{ matrix.os }}
72
73
path : coverage
73
74
74
75
- uses : codecov/codecov-action@v1
97
98
98
99
- name : Deploy
99
100
if : |
100
- startsWith(matrix.os, 'ubuntu') &&
101
+ startsWith(matrix.os, 'ubuntu-18.04 ') &&
101
102
github.ref == 'refs/heads/master'
102
103
uses : ./
103
104
with :
@@ -114,6 +115,24 @@ jobs:
114
115
# commit_message: ${{ github.event.head_commit.message }}
115
116
cname : ' actions-gh-pages.peaceiris.com'
116
117
118
+ - name : Deploy
119
+ if : |
120
+ startsWith(matrix.os, 'ubuntu-16.04') &&
121
+ github.ref == 'refs/heads/master'
122
+ uses : ./
123
+ with :
124
+ # deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
125
+ github_token : ${{ secrets.GITHUB_TOKEN }}
126
+ publish_branch : gh-pages-ubuntu-16.04
127
+ publish_dir : ./test_projects/mdbook/book
128
+ # external_repository: ''
129
+ allow_empty_commit : true
130
+ keep_files : true
131
+ force_orphan : true
132
+ user_name : ' github-actions[bot]'
133
+ user_email : ' github-actions[bot]@users.noreply.github.com'
134
+ # commit_message: ${{ github.event.head_commit.message }}
135
+
117
136
- name : Deploy
118
137
if : |
119
138
startsWith(matrix.os, 'macos') &&
0 commit comments