Skip to content

Commit aee850d

Browse files
add artifact
1 parent 450d672 commit aee850d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77

88
permissions:
99
contents: write
10+
1011
jobs:
1112
build:
1213
runs-on: ubuntu-latest
@@ -15,15 +16,21 @@ jobs:
1516
uses: actions/checkout@v4
1617

1718
- name: Upload artifact
18-
uses: actions/upload-pages-artifact@v2
19+
uses: actions/upload-artifact@v4
1920
with:
2021
path: ./public # This is your static site folder
2122
deploy:
2223
runs-on: ubuntu-latest
24+
needs: build
2325
steps:
2426
- name: Checkout
2527
uses: actions/checkout@v4
2628

29+
- name: Download artifact
30+
uses: actions/download-artifact@v4
31+
with:
32+
name: public
33+
path: ./public
2734
- name: Deploy
2835
uses: peaceiris/actions-gh-pages@v4
2936
if: github.ref == 'refs/heads/master'

0 commit comments

Comments
 (0)