Skip to content

Commit d7beb80

Browse files
committed
ci: misc
1 parent 92a8ecf commit d7beb80

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: 'github-actions'
4+
directory: '/'
5+
schedule:
6+
interval: 'weekly'
7+
commit-message:
8+
prefix: 'ci'
9+
groups:
10+
github-actions:
11+
patterns:
12+
- '*'

.github/workflows/hugo.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1-
name: Deploy Hugo site to GitHub Pages
1+
name: build-and-deploy
22

33
on:
44
# Runs on pushes targeting the default branch
55
push:
66
branches:
77
- master
88

9+
# Runs on pull requests
10+
pull_request:
11+
912
# Allows you to run this workflow manually from the Actions tab
1013
workflow_dispatch:
1114

@@ -57,13 +60,17 @@ jobs:
5760
--gc \
5861
--minify \
5962
--baseURL "${{ steps.pages.outputs.base_url }}/"
63+
- name: Verify .well-known exists
64+
run: |
65+
ls -la ./public/.well-known/ || echo ".well-known not found"
6066
- name: Upload artifact
6167
uses: actions/upload-pages-artifact@v4
6268
with:
6369
path: ./public
6470

6571
# Deployment job
6672
deploy:
73+
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
6774
environment:
6875
name: github-pages
6976
url: ${{ steps.deployment.outputs.page_url }}

0 commit comments

Comments
 (0)