fix: переход на jt4d-wiki.ru.net
This commit is contained in:
+6
-3
@@ -20,13 +20,15 @@ runs:
|
||||
ORG="${{ github.repository_owner }}"
|
||||
|
||||
if [[ "$REF" == "main" || "$REF" == "master" ]]; then
|
||||
URL="http://${REPO}.${ORG}.docs.jt4d.ru.net"
|
||||
URL="http://${REPO}.${ORG}.jt4d-wiki.ru.net"
|
||||
S3_PATH="${ORG}.${REPO}"
|
||||
else
|
||||
URL="http://${REF}.${REPO}.${ORG}.docs.jt4d.ru.net"
|
||||
URL="http://${REF}.${REPO}.${ORG}.jt4d-wiki.ru.net"
|
||||
S3_PATH="${ORG}.${REPO}.${REF}"
|
||||
fi
|
||||
|
||||
echo "TARGET_URL=$URL" >> $GITHUB_ENV
|
||||
echo "S3_PATH=${ORG}.${REPO}.${REF}" >> $GITHUB_ENV
|
||||
echo "S3_PATH=$S3_PATH" >> $GITHUB_ENV
|
||||
|
||||
- name: Set docs status pending
|
||||
shell: bash
|
||||
@@ -65,6 +67,7 @@ runs:
|
||||
working-directory: ${{ github.action_path }}/docusaurus
|
||||
env:
|
||||
DOCUSERVIX_ON_BROKEN_LINKS: ${{ inputs.on-broken-links }}
|
||||
DOCUSERVIX_URL: ${{ env.TARGET_URL }}
|
||||
run: yarn docusaurus build --out-dir ${{ github.workspace }}/generated-docs
|
||||
|
||||
- name: Upload to S3
|
||||
|
||||
Reference in New Issue
Block a user