Skip to content

Commit 4fe65e0

Browse files
committed
Ship firmware.conf on the pages site
raw.githubusercontent.com is not meant to be a CDN, so let's not use it as such. Also, this avoids having 'master' in the filename, preparing for renaming the master branch to main in the future.
1 parent 3f3aebf commit 4fe65e0

3 files changed

Lines changed: 4 additions & 5 deletions

File tree

.github/workflows/gh-pages.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
push:
55
branches:
66
- master
7-
- seveas-test
87

98
jobs:
109
deploy:
@@ -20,7 +19,7 @@ jobs:
2019

2120
- name: Ship firmware.conf
2221
run:
23-
'id && ls -la docs/_build/html && sudo cp firmware.conf docs/_build/html'
22+
sudo cp firmware.conf docs/_build/html
2423

2524
- name: Deploy
2625
uses: peaceiris/actions-gh-pages@v3

docs/firmware.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ that too::
3434
hpilo_cli download_rib_firmware ilo4 all # Download all firmware versions for iLO 4
3535
hpilo_cli download_rib_firmware all all # Download all firmware versions for all iLO types
3636

37-
.. _`firmware.conf`: https://raw.githubusercontent.com/seveas/python-hpilo/master/firmware.conf
37+
.. _`firmware.conf`: https://seveas.github.io/python-hpilo/firmware.conf
3838

3939
Using the API
4040
-------------
@@ -95,7 +95,7 @@ auto-update via cron) such a mirror with a simple shellscript::
9595
#!/bin/sh
9696

9797
cd /var/www/html/ilo-firmware
98-
wget -q https://raw.githubusercontent.com/seveas/python-hpilo/master/firmware.conf
98+
wget -q https://seveas.github.io/python-hpilo/firmware.conf
9999
hpilo_cli -c /dev/null download_rib_firmware all all
100100

101101
This will download and extract the necessary files to

hpilo_fw.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def config(mirror=None):
2626
if mirror:
2727
conf = _download(mirror + 'firmware.conf')
2828
else:
29-
conf = _download('https://raw.githubusercontent.com/seveas/python-hpilo/master/firmware.conf')
29+
conf = _download('https://seveas.github.io/python-hpilo/firmware.conf')
3030
conf = conf.decode('ascii')
3131
parser = ConfigParser.ConfigParser()
3232
parser.readfp(io.StringIO(conf))

0 commit comments

Comments
 (0)