fix(workflow): hopefully fixed deploying documentation on pull requests
Some checks failed
Build Documentation and Lint Code / build and lint (pull_request) Failing after 1m1s
Some checks failed
Build Documentation and Lint Code / build and lint (pull_request) Failing after 1m1s
This commit is contained in:
parent
7513258cf5
commit
85e0387935
1 changed files with 12 additions and 5 deletions
|
@ -44,13 +44,20 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
export PATH="$HOME/.local/bin:$PATH"
|
export PATH="$HOME/.local/bin:$PATH"
|
||||||
mkdocs build
|
mkdocs build
|
||||||
|
continue-on-error: true
|
||||||
- name: Deploy the documentation to Meli (CoastalCommits Pages)
|
- name: Deploy the documentation to Meli (CoastalCommits Pages)
|
||||||
run: |
|
run: |
|
||||||
|
if [ -n "${{ github.base_ref }}" ]; then
|
||||||
|
release="${{ github.base_ref }}"
|
||||||
|
else
|
||||||
|
release="${{ github.ref }}"
|
||||||
|
fi
|
||||||
|
|
||||||
npx -p "@getmeli/cli" meli upload ./site \
|
npx -p "@getmeli/cli" meli upload ./site \
|
||||||
--url "http://pages.coastalcommits.com" \
|
--url "http://pages.coastalcommits.com" \
|
||||||
--site "${{ variables.MELI_SITE }}" \
|
--site "${{ variables.MELI_SITE }}" \
|
||||||
--token "${{ secrets.MELI_SITE_SECRET }}" \
|
--token "${{ secrets.MELI_SITE_SECRET }}" \
|
||||||
--release "$GITEA_SHA"
|
--release "$release"
|
||||||
env:
|
env:
|
||||||
GITEA_TOKEN: ${{ secrets.COASTALCOMMITSTOKEN }}
|
GITEA_TOKEN: ${{ secrets.COASTALCOMMITSTOKEN }}
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
Loading…
Reference in a new issue