Skip to content

Commit

Permalink
Updating Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
truemped committed Dec 5, 2024
1 parent ee141c6 commit 7ef95b3
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/main.yml → .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
name: CI
on: push
name: GitHub Pages

on:
push:
branches:
- main # Set a branch to deploy

jobs:
deploy:
runs-on: ubuntu-22.04
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- name: Git checkout
uses: actions/checkout@v4
with:
ref: 'source'
submodules: 'recursive'

- name: Update theme
# (Optional)If you have the theme added as submodule, you can pull it and use the most updated version
run: git submodule update --init --recursive
fetch-depth: 0

- name: Setup hugo
uses: peaceiris/actions-hugo@v3
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: GitHub Pages

on:
pull_request:

jobs:
deploy:
runs-on: ubuntu-22.04
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- name: Git checkout
uses: actions/checkout@v4
with:
ref: 'source'
submodules: 'recursive'
fetch-depth: 0

- name: Setup hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: "0.139.3"
extended: true

- name: Build
# remove --minify tag if you do not need it
# docs: https://gohugo.io/hugo-pipes/minification/
run: hugo --environment=live

0 comments on commit 7ef95b3

Please sign in to comment.