fix(workflow): fixed messy documentation deployment
All checks were successful
Build Documentation and Lint Code / build and lint (push) Successful in 1m27s

This commit is contained in:
Seaswimmer 2024-01-07 02:05:52 +00:00
parent 3f8aaa290b
commit 1b9bed700f
Signed by: cswimr
GPG key ID: D74DDDDF420E13DF

View file

@ -48,9 +48,9 @@ jobs:
- name: Deploy the documentation to Meli (CoastalCommits Pages) - name: Deploy the documentation to Meli (CoastalCommits Pages)
run: | run: |
if [ -n "${{ github.base_ref }}" ]; then if [ -n "${{ github.base_ref }}" ]; then
release="${{ github.base_ref }}" release="$(basename "{{ github.base_ref }}")"
else else
release="${{ github.ref }}" release="$(basename "${{ github.ref }}")"
fi fi
echo "Deploying to Meli on branch $release" echo "Deploying to Meli on branch $release"
@ -59,7 +59,7 @@ jobs:
--url "https://pages.coastalcommits.com" \ --url "https://pages.coastalcommits.com" \
--site "${{ vars.MELI_SITE_ID }}" \ --site "${{ vars.MELI_SITE_ID }}" \
--token "${{ secrets.MELI_SITE_SECRET }}" \ --token "${{ secrets.MELI_SITE_SECRET }}" \
--release "$release/$(git rev-parse --short HEAD)" \ --release "$release/$(git rev-parse HEAD)" \
--branch "$release" --branch "$release"
echo "Deployed to Meli on branch $release" echo "Deployed to Meli on branch $release"