debug pipeline
This commit is contained in:
@@ -25,19 +25,31 @@ build-and-deploy:
|
||||
- apt-get update -qq
|
||||
- apt-get install -y powershell
|
||||
|
||||
script:
|
||||
cript:
|
||||
# Clone template repository from GitHub (public)
|
||||
- echo "Cloning templates from https://github.com/$TEMPLATES_REPO.git"
|
||||
- git clone https://github.com/$TEMPLATES_REPO.git template
|
||||
|
||||
# Clone scripts repository from GitHub (private)
|
||||
- echo "Cloning scripts from GitHub (private repo)"
|
||||
- git clone https://$GITHUB_TOKEN@github.com/$SCRIPTS_REPO.git scripts
|
||||
|
||||
# Debug: Check what was cloned
|
||||
- echo "Contents of current directory:"
|
||||
- ls -la
|
||||
- echo "Contents of scripts directory:"
|
||||
- ls -la scripts/
|
||||
|
||||
# Install Zola
|
||||
- curl -L "https://github.com/getzola/zola/releases/download/v${ZOLA_VERSION}/zola-v${ZOLA_VERSION}-x86_64-unknown-linux-gnu.tar.gz" | tar xz
|
||||
- mv zola /usr/local/bin
|
||||
|
||||
# Convert JSON to Zola content using PowerShell
|
||||
- pwsh -Command ". ./scripts/Convert-ToZola.ps1 -MetadataPath ./ -ZolaContentPath ./template/content"
|
||||
- echo "Running PowerShell conversion script"
|
||||
- echo "Current working directory: $(pwd)"
|
||||
- echo "Script path: $(pwd)/scripts/Convert-ToZola.ps1"
|
||||
- test -f "./scripts/Convert-ToZola.ps1" && echo "Script exists" || echo "Script NOT found"
|
||||
- pwsh -File "./scripts/Convert-ToZola.ps1" -MetadataPath "./" -ZolaContentPath "./template/content"
|
||||
|
||||
# Build Zola site
|
||||
- cd template
|
||||
|
||||
Reference in New Issue
Block a user