diff --git a/.forgejo/workflows/workflow.yaml b/.forgejo/workflows/workflow.yaml index b1a975c..67967e3 100644 --- a/.forgejo/workflows/workflow.yaml +++ b/.forgejo/workflows/workflow.yaml @@ -18,13 +18,15 @@ jobs: - name: Install dependencies run: poetry install --with docs --with dev --no-root - - name: Build the documentation - run: mkdocs build - continue-on-error: true - - name: Set Environment Variables uses: actions/env@v2 + - name: Build the documentation + run: | + export SITE_URL="https://$CI_ACTION_REF_NAME_SLUG.seacogs.coastalcommits.com" + mkdocs build -v + continue-on-error: true + - name: Deploy the documentation to Meli (CoastalCommits Pages) run: | GREEN='\033[0;32m' diff --git a/mkdocs.yml b/mkdocs.yml index 05c027b..63ec33c 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -1,5 +1,5 @@ site_name: SeaCogs Documentation -site_url: https://seacogs.coastalcommits.com +site_url: !ENV [SITE_NAME, 'https://seacogs.coastalcommits.com'] repo_name: CoastalCommits repo_url: https://coastalcommits.com/SeaswimmerTheFsh/SeaCogs edit_uri: src/branch/main/.docs