Skip to content

Commit

Permalink
feat: update github's workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mahdavipanah committed Apr 14, 2024
1 parent 7fcf979 commit d0e5dca
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,35 @@
name: github pages
name: Github Pages

on:
push:
branches:
- master # Set a branch to deploy
- master # Set a branch to deploy
pull_request:

jobs:
deploy:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
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
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: 'latest'
hugo-version: "latest"
# extended: true

- name: Build
run: hugo --minify

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
cname: yavarjs.ir
cname: yavarjs.ir

0 comments on commit d0e5dca

Please sign in to comment.