Skip to content

Commit ecaafdd

Browse files
committed
fix(ci): bump action vers
1 parent 6a3d32c commit ecaafdd

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

.github/workflows/static.yml

+15-6
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ on:
55
# Runs on pushes targeting the default branch
66
push:
77
branches: ["main"]
8-
98
# Allows you to run this workflow manually from the Actions tab
109
workflow_dispatch:
1110

@@ -22,8 +21,8 @@ concurrency:
2221
cancel-in-progress: false
2322

2423
jobs:
25-
# Single deploy job since we're just deploying
26-
deploy:
24+
# Build job
25+
build:
2726
environment:
2827
name: github-pages
2928
url: ${{ steps.deployment.outputs.page_url }}
@@ -34,10 +33,20 @@ jobs:
3433
- name: Setup Pages
3534
uses: actions/configure-pages@v3
3635
- name: Upload artifact
37-
uses: actions/upload-pages-artifact@v1
36+
uses: actions/upload-pages-artifact@v3
3837
with:
39-
# Upload entire repository
38+
# Upload entire posts dir
39+
name: 'github-pages'
4040
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:
4150
- name: Deploy to GitHub Pages
4251
id: deployment
43-
uses: actions/deploy-pages@v2
52+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)