Skip to content

Commit 3868e44

Browse files
committed
add CONTENT path as env var
1 parent 42aa416 commit 3868e44

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

action.yaml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,9 @@ runs:
2020
with:
2121
path: user_repo
2222

23-
- name: Copy specific directories and file
23+
- name: Set Environment Variables
2424
run: |
25-
# Remove and copy content directory
26-
rm -rf astro-big-doc/content
27-
cp -R user_repo/content astro-big-doc
28-
29-
# Remove and copy public directory
30-
rm -rf astro-big-doc/public
31-
cp -R user_repo/public astro-big-doc
25+
echo "CONTENT=user_repo" >> $GITHUB_ENV
3226
shell: bash
3327

3428
- name: Setup Node.js environment
@@ -47,7 +41,7 @@ runs:
4741
run: |
4842
cd astro-big-doc
4943
REPO_NAME="${GITHUB_REPOSITORY##*/}"
50-
export PUBLIC_BASE="/$REPO_NAME"
44+
echo "PUBLIC_BASE=/$REPO_NAME" >> $GITHUB_ENV
5145
pnpm run build
5246
shell: bash
5347

0 commit comments

Comments
 (0)