File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change 1
- # Sample workflow for building and deploying a Jekyll site to GitHub Pages
2
1
name : Deploy Jekyll with GitHub Pages
3
2
4
3
on :
5
- # Runs on pushes targeting the default branch
6
4
push :
7
5
branches : ["master"]
8
-
9
- # Allows you to run this workflow manually from the Actions tab
10
6
workflow_dispatch :
11
7
12
- # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
13
8
permissions :
14
9
contents : read
15
10
pages : write
16
11
id-token : write
17
12
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.
20
13
concurrency :
21
14
group : " pages"
22
15
cancel-in-progress : false
23
16
24
17
jobs :
25
- # Build job
26
18
build :
27
19
runs-on : ubuntu-latest
28
20
steps :
@@ -41,13 +33,12 @@ jobs:
41
33
- name : Upload artifact
42
34
uses : actions/upload-pages-artifact@v1
43
35
44
- # Deployment job
45
36
deploy :
37
+ needs : build
38
+ runs-on : ubuntu-latest
46
39
environment :
47
40
name : github-pages
48
41
url : ${{ steps.deployment.outputs.page_url }}
49
- runs-on : ubuntu-latest
50
- needs : build
51
42
steps :
52
43
- name : Deploy to GitHub Pages
53
44
id : deployment
You can’t perform that action at this time.
0 commit comments