Skip to content

Commit 5067f26

Browse files
authored
Update gh-pages.yml
1 parent c8f31c3 commit 5067f26

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

.github/workflows/gh-pages.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,20 @@
1-
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
21
name: Deploy Jekyll with GitHub Pages
32

43
on:
5-
# Runs on pushes targeting the default branch
64
push:
75
branches: ["master"]
8-
9-
# Allows you to run this workflow manually from the Actions tab
106
workflow_dispatch:
117

12-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
138
permissions:
149
contents: read
1510
pages: write
1611
id-token: write
1712

18-
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
19-
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
2013
concurrency:
2114
group: "pages"
2215
cancel-in-progress: false
2316

2417
jobs:
25-
# Build job
2618
build:
2719
runs-on: ubuntu-latest
2820
steps:
@@ -41,13 +33,12 @@ jobs:
4133
- name: Upload artifact
4234
uses: actions/upload-pages-artifact@v1
4335

44-
# Deployment job
4536
deploy:
37+
needs: build
38+
runs-on: ubuntu-latest
4639
environment:
4740
name: github-pages
4841
url: ${{ steps.deployment.outputs.page_url }}
49-
runs-on: ubuntu-latest
50-
needs: build
5142
steps:
5243
- name: Deploy to GitHub Pages
5344
id: deployment

0 commit comments

Comments
 (0)