Skip to content

Commit

Permalink
Make deploy only run on master
Browse files Browse the repository at this point in the history
  • Loading branch information
iofq authored and neolynx committed Nov 21, 2024
1 parent 5ec5787 commit f04753b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit f04753b

Please sign in to comment.