Skip to content

Commit

Permalink
added gitlab-ci.yml for gitlab pages (hugo-toha#236)
Browse files Browse the repository at this point in the history
Co-authored-by: Emruz Hossain <hossainemruz@gmail.com>
  • Loading branch information
d-huck and hossainemruz authored Jul 27, 2023
1 parent 28657f2 commit 26373cc
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
image: registry.gitlab.com/pages/hugo/hugo_extended:latest

default:
before_script:
- apk add --update --no-cache git go nodejs npm
- hugo mod tidy
- hugo mod npm pack
- npm install

test:
script:
- hugo
rules:
- if: $CI_COMMIT_REF_NAME != $CI_DEFAULT_BRANCH

pages:
script:
- hugo
artifacts:
paths:
- public
rules:
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH

0 comments on commit 26373cc

Please sign in to comment.