@@ -125,68 +125,32 @@ jobs:
125
125
- name : Check ipython directive errors
126
126
run : " ! grep -B1 \" ^<<<-------------------------------------------------------------------------$\" sphinx.log"
127
127
128
- - name : Merge website and docs
129
- run : |
130
- mkdir -p pandas_web/docs
131
- cp -r web/build/* pandas_web/
132
- cp -r doc/build/html/* pandas_web/docs/
133
- if : github.event_name == 'push'
134
-
135
128
- name : Install Rclone
136
129
run : sudo apt install rclone -y
137
130
if : github.event_name == 'push'
138
131
139
132
- name : Set up Rclone
140
133
run : |
141
- RCLONE_CONFIG_PATH =$HOME/.config/rclone/rclone.conf
142
- mkdir -p `dirname $RCLONE_CONFIG_PATH `
143
- echo "[ovh_cloud_pandas_web ]" > $RCLONE_CONFIG_PATH
144
- echo "type = swift" >> $RCLONE_CONFIG_PATH
145
- echo "env_auth = false" >> $RCLONE_CONFIG_PATH
146
- echo "auth_version = 3" >> $RCLONE_CONFIG_PATH
147
- echo "auth = https://auth.cloud.ovh.net/v3/" >> $RCLONE_CONFIG_PATH
148
- echo "endpoint_type = public" >> $RCLONE_CONFIG_PATH
149
- echo "tenant_domain = default" >> $RCLONE_CONFIG_PATH
150
- echo "tenant = 2977553886518025" >> $RCLONE_CONFIG_PATH
151
- echo "domain = default" >> $RCLONE_CONFIG_PATH
152
- echo "user = w4KGs3pmDxpd" >> $RCLONE_CONFIG_PATH
153
- echo "key = ${{ secrets.ovh_object_store_key }}" >> $RCLONE_CONFIG_PATH
154
- echo "region = BHS" >> $RCLONE_CONFIG_PATH
134
+ CONF =$HOME/.config/rclone/rclone.conf
135
+ mkdir -p `dirname $CONF `
136
+ echo "[ovh_host ]" > $CONF
137
+ echo "type = swift" >> $CONF
138
+ echo "env_auth = false" >> $CONF
139
+ echo "auth_version = 3" >> $CONF
140
+ echo "auth = https://auth.cloud.ovh.net/v3/" >> $CONF
141
+ echo "endpoint_type = public" >> $CONF
142
+ echo "tenant_domain = default" >> $CONF
143
+ echo "tenant = 2977553886518025" >> $CONF
144
+ echo "domain = default" >> $CONF
145
+ echo "user = w4KGs3pmDxpd" >> $CONF
146
+ echo "key = ${{ secrets.ovh_object_store_key }}" >> $CONF
147
+ echo "region = BHS" >> $CONF
155
148
if : github.event_name == 'push'
156
149
157
150
- name : Sync web with OVH
158
- run : rclone sync pandas_web ovh_cloud_pandas_web:dev
159
- if : github.event_name == 'push'
160
-
161
- - name : Create git repo to upload the built docs to GitHub pages
162
- run : |
163
- cd pandas_web
164
- git init
165
- touch .nojekyll
166
- echo "dev.pandas.io" > CNAME
167
- printf "User-agent: *\nDisallow: /" > robots.txt
168
- git add --all .
169
- git config user.email "[email protected] "
170
- git config user.name "pandas-bot"
171
- git commit -m "pandas web and documentation in master"
151
+ run : rclone sync --exclude pandas-docs/** web/build ovh_host:prod
172
152
if : github.event_name == 'push'
173
153
174
- # For this task to work, next steps are required:
175
- # 1. Generate a pair of private/public keys (i.e. `ssh-keygen -t rsa -b 4096 -C "[email protected] "`)
176
- # 2. Go to https://github.com/pandas-dev/pandas/settings/secrets
177
- # 3. Click on "Add a new secret"
178
- # 4. Name: "github_pagas_ssh_key", Value: <Content of the private ssh key>
179
- # 5. The public key needs to be upladed to https://github.com/pandas-dev/pandas-dev.github.io/settings/keys
180
- - name : Install GitHub pages ssh deployment key
181
- uses : shimataro/ssh-key-action@v2
182
- with :
183
- key : ${{ secrets.github_pages_ssh_key }}
184
- known_hosts : ' github.com,192.30.252.128 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ=='
185
- if : github.event_name == 'push'
186
-
187
- - name : Publish web and docs to GitHub pages
188
- run : |
189
- cd pandas_web
190
- git remote add origin [email protected] :pandas-dev/pandas-dev.github.io.git
191
- git push -f origin master || true
154
+ - name : Sync dev docs with OVH
155
+ run : rclone sync doc/build/html ovh_host:prod/pandas-docs/dev
192
156
if : github.event_name == 'push'
0 commit comments