Skip to content

Commit 60b5bc4

Browse files
authored
Merge pull request #48 from ArkhamCookie/fix-workflow-error
fix: add back the deploy step on workflow
2 parents 1d31d0b + 6c7e8de commit 60b5bc4

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

.github/workflows/hugo.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Sample workflow for building and deploying a Hugo site to GitHub Pages
2-
name: Deploy Hugo Site to Pages
2+
name: Deploy Hugo site to Pages
33

44
on:
55
# Runs on pushes targeting the default branch
@@ -40,7 +40,6 @@ jobs:
4040
run: |
4141
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
4242
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
43-
# TODO: Figure out if this step is needed when only using css (I hate snap)
4443
- name: Install Dart Sass
4544
run: sudo snap install dart-sass
4645
- name: Checkout
@@ -82,3 +81,15 @@ jobs:
8281
uses: actions/upload-pages-artifact@v3
8382
with:
8483
path: ./public
84+
85+
# Deployment job
86+
deploy:
87+
environment:
88+
name: github-pages
89+
url: ${{ steps.deployment.outputs.page_url }}
90+
runs-on: ubuntu-latest
91+
needs: build
92+
steps:
93+
- name: Deploy to GitHub Pages
94+
id: deployment
95+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)