diff --git a/.github/workflows/hugo.yml b/.github/workflows/hugo.yml index 383f17d..9c89793 100644 --- a/.github/workflows/hugo.yml +++ b/.github/workflows/hugo.yml @@ -49,17 +49,26 @@ jobs: - uses: actions/checkout@v4 with: submodules: true + - name: Setup Pages + id: pages + uses: actions/configure-pages@v4 - name: Setup Hugo uses: peaceiris/actions-hugo@v2 with: hugo-version: '0.111.3' - name: Build + env: + HUGO_ENVIRONMENT: production + HUGO_ENV: production run: hugo --minify - - name: Deploy - uses: peaceiris/actions-gh-pages@v3 + + - name: Upload artifact + uses: actions/upload-pages-artifact@v2 with: - deploy_key: ${{ secrets.GITHUB_TOKEN }} - cname: blog.jcatania.io + path: ./public + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v3 - name: Git Push run: | git config --global user.email "github-actions[bot]@users.noreply.github.com"