Skip to content

Commit 5b322d1

Browse files
committed
refactor: update GitHub Actions workflow to download articles to a temporary folder before moving to the correct location
1 parent 42695d6 commit 5b322d1

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/pages.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,16 @@ jobs:
3232

3333
- name: Download folder
3434
# Use the secret from GitHub repository settings
35-
run: gdown --folder ${{ secrets.GDRIVE_FOLDER_ID }} -O src/routes/posts/mdarticles/[slug]/
36-
35+
run: |
36+
mkdir -p tmp/
37+
gdown --folder ${{ secrets.GDRIVE_FOLDER_ID }} -O tmp/
38+
39+
- name: Move articles to correct location
40+
run: |
41+
mkdir -p src/routes/posts/mdarticles/[slug]/
42+
mv tmp/mdarticles/* src/routes/posts/mdarticles/[slug]/
43+
rmdir tmp
44+
3745
- name: Setup Node.js
3846
uses: actions/setup-node@v4
3947
with:

src/routes/posts/mdarticles/[slug]/.empty

Whitespace-only changes.

0 commit comments

Comments
 (0)