Skip to content

Commit 44b33d1

Browse files
authored
- add deploy step
1 parent 7721c88 commit 44b33d1

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/build_page.yml

+13
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ concurrency:
2424
jobs:
2525
# Build job
2626
build:
27+
environment:
28+
name: github-pages
29+
url: ${{ steps.deployment.outputs.page_url }}
2730
runs-on: ubuntu-latest
2831
steps:
2932
- name: Checkout
@@ -35,3 +38,13 @@ jobs:
3538
- run: docker pull klakegg/hugo:0.68.0
3639
- run: docker run -e HUGO_DESTINATION=public -v $(pwd)/site:/src klakegg/hugo:0.68.0 -d public
3740
- run: ls -l
41+
- name: Setup Pages
42+
uses: actions/configure-pages@v5
43+
- name: Upload artifact
44+
uses: actions/upload-pages-artifact@v3
45+
with:
46+
# Upload entire repository
47+
path: 'site/public'
48+
- name: Deploy to GitHub Pages
49+
id: deployment
50+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)