Skip to content

Commit 92d8dae

Browse files
committed
feat: add Python setup and gdown installation for downloading articles in workflow
1 parent 758b89f commit 92d8dae

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/pages.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,18 @@ jobs:
2222
- name: Checkout repository
2323
uses: actions/checkout@v4
2424

25+
- name: Set up Python
26+
uses: actions/setup-python@v4
27+
with:
28+
python-version: '3.x'
29+
30+
- name: Install gdown
31+
run: pip install gdown
32+
33+
- name: Download folder
34+
# Use the secret from GitHub repository settings
35+
run: gdown --folder ${{ secrets.GDRIVE_FOLDER_ID }} -O src/routes/posts/mdarticles/[slug]/
36+
2537
- name: Setup Node.js
2638
uses: actions/setup-node@v4
2739
with:

0 commit comments

Comments
 (0)