Skip to content

Commit

Permalink
add CONTENT path as env var
Browse files Browse the repository at this point in the history
  • Loading branch information
wassfila committed Jun 15, 2024
1 parent 42aa416 commit 3868e44
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,9 @@ runs:
with:
path: user_repo

- name: Copy specific directories and file
- name: Set Environment Variables
run: |
# Remove and copy content directory
rm -rf astro-big-doc/content
cp -R user_repo/content astro-big-doc
# Remove and copy public directory
rm -rf astro-big-doc/public
cp -R user_repo/public astro-big-doc
echo "CONTENT=user_repo" >> $GITHUB_ENV
shell: bash

- name: Setup Node.js environment
Expand All @@ -47,7 +41,7 @@ runs:
run: |
cd astro-big-doc
REPO_NAME="${GITHUB_REPOSITORY##*/}"
export PUBLIC_BASE="/$REPO_NAME"
echo "PUBLIC_BASE=/$REPO_NAME" >> $GITHUB_ENV
pnpm run build
shell: bash

Expand Down

0 comments on commit 3868e44

Please sign in to comment.