use language-invariant link to the usb-butter page
This commit is contained in:
parent
189bd10e4c
commit
522039271c
3 changed files with 7 additions and 2 deletions
|
|
@ -17,6 +17,9 @@ test:
|
|||
except:
|
||||
- butter-box
|
||||
|
||||
# This includes 3 separate builds.
|
||||
# The main one is for the GitLab pages deployment. It includes a simulated USB Butter drive.
|
||||
# The other two are for the downloadable zips of the site in English and Spanish.
|
||||
pages:
|
||||
stage: deploy
|
||||
script:
|
||||
|
|
@ -35,12 +38,13 @@ pages:
|
|||
- bundle exec jekyll build -d public
|
||||
- cd public
|
||||
- zip -r ../site-es.zip ./
|
||||
# Now go build the site we actually want to deploy.
|
||||
- cd ..
|
||||
- git restore .
|
||||
# Now go build the site we actually want to deploy.
|
||||
# simulate the drive being inserted
|
||||
- mv simulated-usb-butter usb-butter
|
||||
- "sed -i 's/^baseurl.*/baseurl: \"\\/butter-box-ui\"/' _config.yml"
|
||||
- "sed -i 's/^usb_butter_url.*/usb_butter_url: \"\\/usb-butter\"/' _config.yml"
|
||||
- bundle exec jekyll build -d public
|
||||
# Now move the zip into the public dir so it gets served.
|
||||
- mv ./site-en.zip ./public/site-en.zip
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue