Skip to content

Commit cd43be1

Browse files
authored
ci: misc #396
1 parent 92a8ecf commit cd43be1

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-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: 5 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

@@ -64,6 +67,7 @@ jobs:
6467

6568
# Deployment job
6669
deploy:
70+
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
6771
environment:
6872
name: github-pages
6973
url: ${{ steps.deployment.outputs.page_url }}

0 commit comments

Comments
 (0)