Skip to content

Commit

Permalink
first-attempt documentation github pages deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
siddheshraze committed Aug 23, 2024
1 parent f8e3276 commit aab6c36
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/main-forestgeo-livesite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ on:
- 'forestgeo-app-*'
workflow_dispatch:

env:
INSTANCE: 'documentation/forestgeo-docs'
ARTIFACT: 'webHelpFORESTGEO-DOCS2-all.zip'
DOCKER_VERSION: '241.18775'

jobs:
build-and-deploy:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -133,3 +138,32 @@ jobs:
slot-name: 'development'
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_DEVELOPMENT }}
package: ./frontend/build/standalone

build-docs:
runs-on: ubuntu-latest
needs: build-and-deploy
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: 'webHelpHI2-all.zip'
docker-version: '241.18775'

- name: Upload documentation artifact
uses: actions/upload-artifact@v4
with:
name: docs
path: artifacts/webHelpHI2-all.zip
retention-days: 7

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./frontend/documentation

0 comments on commit aab6c36

Please sign in to comment.