-
Notifications
You must be signed in to change notification settings - Fork 8
165 lines (134 loc) · 4.77 KB
/
gh-pages.yml
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
name: Github Pages
on:
pull_request:
push:
branches:
- master
schedule:
- cron: '0 6 * * *'
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true
fetch-depth: 1
- name: Checkout PrestaShop repository
uses: actions/checkout@v4
with:
repository: PrestaShop/PrestaShop
fetch-depth: 1
path: prestashop
- name: Checkout PrestaShop repository (9.0.x)
uses: actions/checkout@v4
with:
repository: PrestaShop/PrestaShop
fetch-depth: 1
path: prestashop_90x
ref: 9.0.x
- name: Checkout PrestaShop repository (8.2.x)
uses: actions/checkout@v4
with:
repository: PrestaShop/PrestaShop
fetch-depth: 1
path: prestashop_82x
ref: 8.2.x
- name: Checkout PrestaShop repository (8.1.x)
uses: actions/checkout@v4
with:
repository: PrestaShop/PrestaShop
fetch-depth: 1
path: prestashop_81x
ref: 8.1.x
- name: Checkout PrestaShop repository (8.0.x)
uses: actions/checkout@v4
with:
repository: PrestaShop/PrestaShop
fetch-depth: 1
path: prestashop_80x
ref: 8.0.x
- name: Checkout PrestaShop repository (1.7.8.x)
uses: actions/checkout@v4
with:
repository: PrestaShop/PrestaShop
fetch-depth: 1
path: prestashop_178x
ref: 1.7.8.x
- name: Checkout Module repository (autoupgrade)
uses: actions/checkout@v4
with:
repository: PrestaShop/autoupgrade
fetch-depth: 1
path: autoupgrade
ref: dev
- name: Checkout Module repository (blockwishlist)
uses: actions/checkout@v4
with:
repository: PrestaShop/blockwishlist
fetch-depth: 1
path: blockwishlist
ref: dev
- name: Checkout Module repository (ps_cashondelivery)
uses: actions/checkout@v4
with:
repository: PrestaShop/ps_cashondelivery
fetch-depth: 1
path: ps_cashondelivery
ref: dev
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.121.1'
extended: true
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
- name: Clean public directory
run: rm -rf public
- name: Composer install
run: cd scripts && composer install && cd ..
- name: Export JIRA XRay Core
if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/master') || github.event_name == 'schedule' }}
run: php scripts/bin/console scenario:export:core --apikey ${{ secrets.JIRA_APIKEY }}
- name: Export JIRA XRay Modules
if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/master') || github.event_name == 'schedule' }}
run: php scripts/bin/console scenario:export:module --apikey ${{ secrets.JIRA_APIKEY }}
- name: Clean `known-bugs` directory
run: rm -rf src/content/scenarios/known-bugs/
- name: Export Known bugs
run: php scripts/bin/console scenario:export:knownbugs --config config.json
- name: Remove prestashop directory (on Develop)
run: rm -rf ./prestashop/
- name: Remove prestashop directory (on 9.0.x)
run: rm -rf ./prestashop_90x/
- name: Remove prestashop directory (on 8.2.x)
run: rm -rf ./prestashop_82x/
- name: Remove prestashop directory (on 8.1.x)
run: rm -rf ./prestashop_81x/
- name: Remove prestashop directory (on 8.0.x)
run: rm -rf ./prestashop_80x/
- name: Remove prestashop directory (on 1.7.8.x)
run: rm -rf ./prestashop_178x/
- name: Remove module directory (autoupgrade)
run: rm -rf ./autoupgrade/
- name: Remove module directory (blockwishlist)
run: rm -rf ./blockwishlist/
- name: Remove module directory (ps_cashondelivery)
run: rm -rf ./ps_cashondelivery/
- name: Commit changes
if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/master') || github.event_name == 'schedule' }}
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "[Update] JIRA XRay Tests"
- name: Build
run: cd src && hugo && cd ..
- name: Deploy
if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/master') || github.event_name == 'schedule' }}
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./src/public