Skip to content

Commit beeda2d

Browse files
authored
Update cd.yml
1 parent 30ca388 commit beeda2d

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

.github/workflows/cd.yml

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on:
33
push:
44
branches: [master]
55
schedule:
6-
- cron: '0 0 1 DEC,MAR,JUN,SEP *'
6+
- cron: '0 0 1 * *'
77
workflow_dispatch:
88
jobs:
99
# Build
@@ -22,23 +22,17 @@ jobs:
2222
run: yarn build
2323
env:
2424
CONTENTFUL_ACCESS_TOKEN: ${{ secrets.CONTENTFUL_ACCESS_TOKEN }}
25-
- name: Upload Artifact
26-
uses: actions/upload-artifact@v2.2.3
25+
- name: Upload GitHub Pages artifact
26+
uses: actions/upload-pages-artifact@v3.0.1
2727
with:
2828
path: public
29-
name: artifact
30-
29+
3130
# Deploy
3231
deploy:
3332
needs: [build]
3433
runs-on: ubuntu-latest
3534
steps:
36-
- name: Checkout Repo
37-
uses: actions/checkout@v2
38-
- name: Download Artifact
39-
uses: actions/download-artifact@v2.0.9
40-
- name: Deploy to GitHub Pages
41-
uses: rdarida/simple-github-pages-deploy-action@v1
42-
with:
43-
git-base-folder: artifact
44-
commit-message: Auto build static site
35+
- name: Configure GitHub Pages
36+
uses: actions/configure-pages@v5.0.0
37+
- name: Deploy GitHub Pages site
38+
uses: actions/deploy-pages@v4.0.5

0 commit comments

Comments
 (0)