From 13af3a02e263fe028cf294c21a3138ebae6618cf Mon Sep 17 00:00:00 2001 From: Mikhail Petrov Date: Thu, 29 Dec 2022 15:15:29 +0300 Subject: [PATCH] [#1] Implement github pages workflow Signed-off-by: Mikhail Petrov --- .github/workflows/gh-pages.yml | 32 ++++++++++++++++++++++++++++++++ config.toml | 2 +- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/gh-pages.yml diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml new file mode 100644 index 0000000..f720231 --- /dev/null +++ b/.github/workflows/gh-pages.yml @@ -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 diff --git a/config.toml b/config.toml index 45d9ee1..9d05434 100644 --- a/config.toml +++ b/config.toml @@ -1,5 +1,5 @@ ################################# Site configuration ################### -baseURL = 'https://truecloudlab.github.io/' +baseURL = 'https://truecloudlab.github.io/frostfs.info' # disable language disableLanguages = []