Skip to content

Commit

Permalink
trying to figure out why this isn't working
Browse files Browse the repository at this point in the history
  • Loading branch information
siddheshraze committed Sep 3, 2024
1 parent cc53a93 commit 3bc63ff
Showing 1 changed file with 75 additions and 2 deletions.
77 changes: 75 additions & 2 deletions .github/workflows/main-forestgeo-livesite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
workflow_dispatch:

jobs:
build-and-deploy:
build-app:
runs-on: ubuntu-latest
environment: development

Expand Down Expand Up @@ -106,6 +106,24 @@ jobs:
mv ./frontend/public ./frontend/build/standalone
mv ./frontend/*.pem ./frontend/build/standalone/
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: app-build
path: frontend/build/standalone

deploy-app:
needs: build-app
runs-on: ubuntu-latest
environment: development

steps:
- name: Download build artifact
uses: actions/download-artifact@v4
with:
name: app-build
path: frontend/build/standalone

# - name: 'Login to Azure'
# uses: azure/login@v1
# with:
Expand All @@ -132,4 +150,59 @@ jobs:
app-name: 'forestgeo-livesite'
slot-name: 'development'
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_DEVELOPMENT }}
package: ./frontend/build/standalone
package: ./frontend/build/standalone

build-docs-deploy-docs:
permissions:
id-token: write
pages: write

env:
INSTANCE: 'documentation/fad'
ARTIFACT: 'webHelpFAD2-all.zip'
DOCKER_VERSION: '241.18775'
runs-on: ubuntu-latest
needs: deploy-app
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

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

- name: Upload documentation artifact
uses: actions/upload-artifact@v4
with:
name: docs
path: |
artifacts/${{ env.ARTIFACT }}
artifacts/report.json # Ensure report.json is included
retention-days: 7
- name: Download documentation artifact
uses: actions/download-artifact@v4
with:
name: docs

- name: Unzip documentation artifact
run: unzip -O UTF-8 -qq 'artifacts/${{ env.ARTIFACT }}' -d dir

- name: Setup Pages
uses: actions/configure-pages@v4

- name: Package and upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: dir

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 3bc63ff

Please sign in to comment.