From ab1020e0111e3a06146b3dc0ede6692aa0896243 Mon Sep 17 00:00:00 2001 From: Ngô Ngọc Đức Huy Date: Mon, 12 Apr 2021 15:39:33 +0700 Subject: Use Hugo manually instead --- .github/workflows/hugo.yml | 21 +++++++++++---------- i18n/en.yaml | 2 ++ i18n/en.yml | 2 -- i18n/fr.yaml | 2 ++ i18n/fr.yml | 2 -- 5 files changed, 15 insertions(+), 14 deletions(-) create mode 100644 i18n/en.yaml delete mode 100644 i18n/en.yml create mode 100644 i18n/fr.yaml delete mode 100644 i18n/fr.yml diff --git a/.github/workflows/hugo.yml b/.github/workflows/hugo.yml index 42b1dd0..98595e4 100644 --- a/.github/workflows/hugo.yml +++ b/.github/workflows/hugo.yml @@ -26,15 +26,16 @@ jobs: - name: Reconfig run: sed -i "s/huyngo.srht.site/huy-ngo.github.io/" config.toml - - name: Hugo Build - uses: jakejarvis/hugo-build-action@v0.82.0 + - name: Setup Hugo + uses: peaceiris/actions-hugo@v2 + with: + hugo-version: 'latest' + + - name: Build + run: hugo --minify - - name: Deploy 🚀 - uses: JamesIves/github-pages-deploy-action@4.1.1 + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 with: - branch: gh-pages # The branch the action should deploy to. - folder: public # The folder the action should deploy. - clean: true - clean-exclude: | - .nojekyll - .nojekyll + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./public diff --git a/i18n/en.yaml b/i18n/en.yaml new file mode 100644 index 0000000..b9786e4 --- /dev/null +++ b/i18n/en.yaml @@ -0,0 +1,2 @@ +translations: + other: "Available translations" diff --git a/i18n/en.yml b/i18n/en.yml deleted file mode 100644 index b9786e4..0000000 --- a/i18n/en.yml +++ /dev/null @@ -1,2 +0,0 @@ -translations: - other: "Available translations" diff --git a/i18n/fr.yaml b/i18n/fr.yaml new file mode 100644 index 0000000..c305b10 --- /dev/null +++ b/i18n/fr.yaml @@ -0,0 +1,2 @@ +translations: + other: "Des traductions disponibles" diff --git a/i18n/fr.yml b/i18n/fr.yml deleted file mode 100644 index c305b10..0000000 --- a/i18n/fr.yml +++ /dev/null @@ -1,2 +0,0 @@ -translations: - other: "Des traductions disponibles" -- cgit 1.4.1