We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1a5f07 commit 4fac209Copy full SHA for 4fac209
.github/workflows/build.yml
@@ -2,13 +2,8 @@ name: Build and Deploy Jekyll site
2
3
on:
4
push:
5
- branches:
6
- - gh-pages
+ pull_request:
7
8
-permissions:
9
- contents: read
10
- pages: write
11
- id-token: write
12
13
jobs:
14
build:
@@ -46,6 +41,11 @@ jobs:
46
41
name: github-pages
47
42
url: ${{ steps.deployment.outputs.page_url }}
48
43
runs-on: ubuntu-latest
44
+ permissions:
45
+ contents: read
+ pages: write
+ id-token: write
+ if: github.ref == 'refs/heads/gh-pages'
49
steps:
50
- name: Deploy to GitHub Pages
51
id: deployment
0 commit comments