File tree 1 file changed +15
-6
lines changed
1 file changed +15
-6
lines changed Original file line number Diff line number Diff line change 5
5
# Runs on pushes targeting the default branch
6
6
push :
7
7
branches : ["main"]
8
-
9
8
# Allows you to run this workflow manually from the Actions tab
10
9
workflow_dispatch :
11
10
@@ -22,8 +21,8 @@ concurrency:
22
21
cancel-in-progress : false
23
22
24
23
jobs :
25
- # Single deploy job since we're just deploying
26
- deploy :
24
+ # Build job
25
+ build :
27
26
environment :
28
27
name : github-pages
29
28
url : ${{ steps.deployment.outputs.page_url }}
@@ -34,10 +33,20 @@ jobs:
34
33
- name : Setup Pages
35
34
uses : actions/configure-pages@v3
36
35
- name : Upload artifact
37
- uses : actions/upload-pages-artifact@v1
36
+ uses : actions/upload-pages-artifact@v3
38
37
with :
39
- # Upload entire repository
38
+ # Upload entire posts dir
39
+ name : ' github-pages'
40
40
path : ' ./posts'
41
+
42
+ # Deployment job
43
+ deploy :
44
+ environment :
45
+ name : github-pages
46
+ url : ${{ steps.deployment.outputs.page_url }}
47
+ runs-on : ubuntu-latest
48
+ needs : build
49
+ steps :
41
50
- name : Deploy to GitHub Pages
42
51
id : deployment
43
- uses : actions/deploy-pages@v2
52
+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments