Skip to content

Commit

Permalink
modified: .github/workflows/main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Chi-Kai committed May 15, 2024
1 parent 5a8bbe1 commit abded63
Showing 1 changed file with 30 additions and 31 deletions.
61 changes: 30 additions & 31 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,35 @@
name: blog deploy pipline
name: blog deploy pipeline
on:
push:
push:
tags:
- '*'
branches: [ main ]
- "*"
branches: [main]

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{github.repository}}
REGISTRY: ghcr.io
IMAGE_NAME: ${{github.repository}}

jobs:
build:
runs-on: ubuntu-latest
concurrency:
group: ${{github.workflow}} - ${{github.ref}}
steps:
- name: checkout
uses: actions/checkout@v2
with:
submodules: true
fetch-depth: 0
- name: setup hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.92.0'
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
build:
runs-on: ubuntu-latest
concurrency:
group: ${{github.workflow}} - ${{github.ref}}
steps:
- name: checkout
uses: actions/checkout@v2
with:
submodules: true
fetch-depth: 0
- name: setup hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: "0.125.0"
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

0 comments on commit abded63

Please sign in to comment.