fix(workflow): hopefully fixed deploying documentation on pull requests

This commit is contained in:
SeaswimmerTheFsh 2024-01-06 19:19:34 +00:00
parent 243cec20e7
commit 828c8a540d

View file

@ -44,13 +44,20 @@ jobs:
run: |
export PATH="$HOME/.local/bin:$PATH"
mkdocs build
continue-on-error: true
- name: Deploy the documentation to Meli (CoastalCommits Pages)
run: |
npx -p "@getmeli/cli" meli upload ./site \
--url "http://pages.coastalcommits.com" \
--site "${{ variables.MELI_SITE }}" \
--token "${{ secrets.MELI_SITE_SECRET }}" \
--release "$GITEA_SHA"
if [ -n "${{ github.base_ref }}" ]; then
release="${{ github.base_ref }}"
else
release="${{ github.ref }}"
fi
npx -p "@getmeli/cli" meli upload ./site \
--url "http://pages.coastalcommits.com" \
--site "${{ variables.MELI_SITE }}" \
--token "${{ secrets.MELI_SITE_SECRET }}" \
--release "$release"
env:
GITEA_TOKEN: ${{ secrets.COASTALCOMMITSTOKEN }}
continue-on-error: true