Skip to content

Commit

Permalink
still breaking. trying to add fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
siddheshraze committed Aug 23, 2024
1 parent dc5481e commit 4aaa542
Showing 1 changed file with 27 additions and 11 deletions.
38 changes: 27 additions & 11 deletions .github/workflows/main-forestgeo-livesite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,40 +163,56 @@ jobs:

build-docs:
runs-on: ubuntu-latest
needs: build-app
steps:
- name: Checkout repository
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
repository: Smithsonian/ForestGEO

- name: Build docs using Writerside Docker builder
- name: Build Documentation
uses: JetBrains/writerside-github-action@v4
with:
instance: ${{ env.INSTANCE }}
artifact: ${{ env.ARTIFACT }}
docker-version: ${{ env.DOCKER_VERSION }}
instance: documentation/fad
artifact: webHelpFAD2-all.zip
docker-version: 241.18775

- name: Log artifacts directory contents
run: ls -la /github/workspace/artifacts/

- name: Verify report.json creation
run: |
if [ ! -f "/github/workspace/artifacts/report.json" ]; then
echo "report.json not found!"
exit 1
fi
- name: Upload documentation artifact
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: docs
path: |
artifacts/${{ env.ARTIFACT }}
artifacts/report.json # Ensure report.json is included
artifacts/webHelpFAD2-all.zip
artifacts/report.json
retention-days: 7

test-docs:
needs: build-docs
runs-on: ubuntu-latest
steps:
- name: Download documentation artifact
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: docs
path: artifacts
merge-multiple: false
repository: Smithsonian/ForestGEO
run-id: ${{ github.run_id }}

- name: Log downloaded artifacts
run: ls -la artifacts/

- name: Verify report.json exists
- name: Check for report.json
run: |
if [ ! -f "artifacts/report.json" ]; then
echo "report.json not found!"
Expand Down

0 comments on commit 4aaa542

Please sign in to comment.