Skip to content

Commit d5b0d27

Browse files
committed
fix gh-static-pages action
1 parent df57bfe commit d5b0d27

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

.github/workflows/gh-pages-static.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
1-
# Simple workflow for deploying static content to GitHub Pages
1+
# Workflow to invoke from another workflow to deploy static content to GitHub Pages
22
name: Deploy static content to Pages
33

44
on:
5-
# Runs on pushes targeting the default branch
6-
push:
7-
branches: ["gh-pages"]
8-
9-
# Enable it to be invoked from other workflows
105
workflow_call:
116

127
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
@@ -22,7 +17,6 @@ concurrency:
2217
cancel-in-progress: false
2318

2419
jobs:
25-
# Single deploy job since we're just deploying
2620
deploy:
2721
environment:
2822
name: github-pages
@@ -31,6 +25,8 @@ jobs:
3125
steps:
3226
- name: Checkout
3327
uses: actions/checkout@v4
28+
with:
29+
ref: gh-pages
3430
- name: Setup Pages
3531
uses: actions/configure-pages@v5
3632
- name: Upload artifact

0 commit comments

Comments
 (0)