forked from blizzthewolf/SeaCogs
misc(workflow): colored the echos in the deploy documentation step
This commit is contained in:
parent
8252393474
commit
44ecbce671
1 changed files with 7 additions and 2 deletions
|
@ -47,15 +47,20 @@ jobs:
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
- name: Deploy the documentation to Meli (CoastalCommits Pages)
|
- name: Deploy the documentation to Meli (CoastalCommits Pages)
|
||||||
run: |
|
run: |
|
||||||
|
GREEN='\033[0;32m'
|
||||||
|
YELLOW='\033[0;33m'
|
||||||
|
BLUE='\033[0;34m'
|
||||||
|
|
||||||
unset GITHUB_TOKEN
|
unset GITHUB_TOKEN
|
||||||
unset GITLAB_TOKEN
|
unset GITLAB_TOKEN
|
||||||
|
|
||||||
if [ -n "${{ github.base_ref }}" ]; then
|
if [ -n "${{ github.base_ref }}" ]; then
|
||||||
release="$(basename "${{ github.base_ref }}")"
|
release="$(basename "${{ github.base_ref }}")"
|
||||||
else
|
else
|
||||||
release="$(basename "${{ github.ref }}")"
|
release="$(basename "${{ github.ref }}")"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Deploying to Meli on branch $release"
|
echo -e "${YELLOW}Deploying to ${BLUE}Meli ${YELLOW}on branch ${GREEN}$release..."
|
||||||
|
|
||||||
npx -p "@getmeli/cli" meli upload ./site \
|
npx -p "@getmeli/cli" meli upload ./site \
|
||||||
--url "https://pages.coastalcommits.com" \
|
--url "https://pages.coastalcommits.com" \
|
||||||
|
@ -64,7 +69,7 @@ jobs:
|
||||||
--release "$release/$(git rev-parse HEAD)" \
|
--release "$release/$(git rev-parse HEAD)" \
|
||||||
--branch "$release"
|
--branch "$release"
|
||||||
|
|
||||||
echo "Deployed to Meli on branch $release"
|
echo -e "${YELLOW}Deployed to ${BLUE}Meli ${YELLOW}on branch ${GREEN}$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