Skip to content

Commit

Permalink
🔧 (main.yml): add additional Jekyll build step and upload artifact
Browse files Browse the repository at this point in the history
Add a new step to build the site with Jekyll into a different directory (`./_site2/`) and upload it as a separate artifact. This allows for parallel builds or testing different configurations without interfering with the primary build. The commented-out Jekyll build action is retained for potential future use.
  • Loading branch information
MrHinsh committed Sep 19, 2024
1 parent 4b8c9d9 commit 3eab963
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,17 @@ jobs:
with:
name: AzureDevOpsMigrationTools-Site
path: ./_site/**/*
- name: Build with Jekyll 2
# Outputs to the './_site' directory by default
run: bundle exec jekyll build --destination ./_site2/
env:
JEKYLL_ENV: production
# - name: Build Jekyll
# uses: jerryjvl/jekyll-build-action@v1
- uses: actions/upload-artifact@v4
with:
name: AzureDevOpsMigrationTools-Site2
path: ./_site2/**/*


# GitHubRelease
Expand Down

0 comments on commit 3eab963

Please sign in to comment.