diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index adac629..500a82c 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -2,21 +2,21 @@ name: github pages on: push: - # branches: - # - feature/gh-action-pages # Set a branch to deploy + branches: + - master pull_request: jobs: deploy: - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: submodules: true # Fetch Hugo themes (true OR recursive) fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod - name: Setup Hugo - uses: peaceiris/actions-hugo@v2 + uses: peaceiris/actions-hugo@v3 with: hugo-version: '0.139.0' # extended: true @@ -25,8 +25,8 @@ jobs: run: hugo --minify - name: Deploy - uses: peaceiris/actions-gh-pages@v3 - # if: github.ref == 'refs/heads/feature/gh-action-pages' + uses: peaceiris/actions-gh-pages@v4 + if: github.ref == 'refs/heads/master' with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./public