Skip to content

Commit 0f68edd

Browse files
committed
Use refactored workflow
1 parent 336e7eb commit 0f68edd

File tree

2 files changed

+51
-45
lines changed

2 files changed

+51
-45
lines changed

.github/workflows/gha_workflow.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Generated initially using github-actions-wizard (https://github.com/cmdr2/github-actions-wizard)
2+
3+
name: CI Pipeline
4+
run-name: CI Pipeline
5+
on:
6+
push:
7+
branches:
8+
- main
9+
concurrency:
10+
group: pages
11+
cancel-in-progress: true
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
permissions:
16+
contents: read
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
- name: Setup Hugo
21+
uses: peaceiris/actions-hugo@v2
22+
with:
23+
hugo-version: latest
24+
- name: Build
25+
run: |-
26+
hugo --minify
27+
- name: Upload pages artifact
28+
uses: actions/upload-pages-artifact@v3
29+
with:
30+
name: build
31+
path: public
32+
deploy_to_github_pages:
33+
runs-on: ubuntu-latest
34+
permissions:
35+
contents: read
36+
id-token: write
37+
pages: write
38+
if: github.ref == 'refs/heads/main'
39+
environment:
40+
name: github-pages
41+
url: ${{ steps.deployment.outputs.page_url }}
42+
needs: build
43+
steps:
44+
- name: Publish Message
45+
run: |-
46+
echo Publishing the 'build' artifact
47+
- name: Deploy to GitHub Pages
48+
id: deployment
49+
uses: actions/deploy-pages@v4
50+
with:
51+
artifact_name: build

.github/workflows/hugo.yml

Lines changed: 0 additions & 45 deletions
This file was deleted.

0 commit comments

Comments
 (0)