Test
This commit is contained in:
@@ -52,8 +52,10 @@ jobs:
|
|||||||
|
|
||||||
- name: Copy current repo contents into target subfolder
|
- name: Copy current repo contents into target subfolder
|
||||||
run: |
|
run: |
|
||||||
rm -R target/$TARGET_SUBFOLDER
|
rm -Rf target/template/content
|
||||||
|
rm -Rf target/$TARGET_SUBFOLDER
|
||||||
mkdir -p target/$TARGET_SUBFOLDER
|
mkdir -p target/$TARGET_SUBFOLDER
|
||||||
|
mkdir -p target/template/content
|
||||||
# Exclude the .git directory from the copy
|
# Exclude the .git directory from the copy
|
||||||
rsync -av --exclude={.git,.obsidian,.gitea} current/content/ target/$TARGET_SUBFOLDER/
|
rsync -av --exclude={.git,.obsidian,.gitea} current/content/ target/$TARGET_SUBFOLDER/
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ ARG CACHEBUST=1
|
|||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Generate content files
|
# Generate content files
|
||||||
RUN npm run convert
|
RUN node convert.js --vault ./vault --out ./content --img-prefix https://cdn.aranroig.com/campaigns/test --nuxt-img
|
||||||
|
|
||||||
# Build the Nuxt app
|
# Build the Nuxt app
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|||||||
@@ -4,7 +4,6 @@
|
|||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "nuxt build",
|
"build": "nuxt build",
|
||||||
"convert": "node convert.js --vault ./template/vault --out ./template/content --img-prefix https://cdn.aranroig.com/campaigns/test --nuxt-img",
|
|
||||||
"dev": "nuxt dev",
|
"dev": "nuxt dev",
|
||||||
"generate": "nuxt generate",
|
"generate": "nuxt generate",
|
||||||
"preview": "nuxt preview"
|
"preview": "nuxt preview"
|
||||||
|
|||||||
Reference in New Issue
Block a user