forked from TrueCloudLab/frostfs.info
[#1] Implement github pages workflow
Signed-off-by: Mikhail Petrov <m.petrov@yadro.com>
This commit is contained in:
parent
7b16d141f7
commit
9655f03a13
2 changed files with 33 additions and 1 deletions
32
.github/workflows/gh-pages.yml
vendored
Normal file
32
.github/workflows/gh-pages.yml
vendored
Normal file
|
@ -0,0 +1,32 @@
|
|||
name: github pages
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
submodules: true
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Setup Hugo
|
||||
uses: peaceiris/actions-hugo@v2
|
||||
with:
|
||||
hugo-version: 'latest'
|
||||
# extended: true
|
||||
|
||||
- name: Build
|
||||
run: hugo --minify
|
||||
|
||||
- name: Deploy
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
if: github.ref == 'refs/heads/master'
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
publish_dir: ./public
|
|
@ -1,5 +1,5 @@
|
|||
################################# Site configuration ###################
|
||||
baseURL = 'https://truecloudlab.github.io/'
|
||||
baseURL = 'https://truecloudlab.github.io/frostfs.info'
|
||||
# disable language
|
||||
disableLanguages = []
|
||||
|
||||
|
|
Loading…
Reference in a new issue