Advertisement
Guest User

Bomby's gitlab-ci.yml for use with Hugo

a guest
Apr 28th, 2021
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.86 KB | None | 0 0
  1. stages:
  2.  - build
  3.   - deploy
  4.  
  5. hugo:
  6.   image: registry.gitlab.com/pages/hugo:latest
  7.   stage: build
  8.   script:
  9.    - hugo
  10.   artifacts:
  11.     paths:
  12.      - public
  13.      
  14. neocities:
  15.   image: ruby:2.6.5
  16.   stage: deploy
  17.   environment: neocities
  18.   before_script:
  19.    - gem install bundler
  20.     - bundle install
  21.   script:
  22.     # If you use a static site builder, add its build command here
  23.     # Place user-provide token
  24.     - if [ -z "$NEOCITIES_TOKEN" ]; then echo Please see README.md for information on how to set your Neocities API token && false; else mkdir -p $HOME/.config/neocities && mv $NEOCITIES_TOKEN $HOME/.config/neocities/config; fi
  25.  
  26.     # If you use a static site generator and it places its output somewhere else,
  27.     # change into that directory instead.
  28.     - cd public
  29.    
  30.     # Run the Neocities push
  31.     - bundle exec neocities push .
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement