fixing some stuff
This commit is contained in:
parent
dea8a7b08a
commit
82e6cf74f9
1 changed files with 12 additions and 12 deletions
|
@ -28,20 +28,20 @@ jobs:
|
||||||
|
|
||||||
- name: Deploy documentation
|
- name: Deploy documentation
|
||||||
run: |
|
run: |
|
||||||
GREEN='\033[0;32m'
|
GREEN="\\033[0;32m"
|
||||||
YELLOW='\033[0;33m'
|
YELLOW="\\033[0;33m"
|
||||||
BLUE='\033[0;34m'
|
BLUE="\\033[0;34m"
|
||||||
|
|
||||||
unset GITHUB_TOKEN
|
unset GITHUB_TOKEN
|
||||||
unset GITLAB_TOKEN
|
unset GITLAB_TOKEN
|
||||||
|
|
||||||
echo "${YELLOW}Deploying to ${BLUE}Meli ${YELLOW}on branch ${GREEN}$CI_ACTION_REF_NAME_SLUG${YELLOW}...\n"
|
echo "${YELLOW}Deploying to ${BLUE}Meli ${YELLOW}on branch ${GREEN}$CI_ACTION_REF_NAME_SLUG${YELLOW}...\n"
|
||||||
|
|
||||||
npx -p "@getmeli/cli" meli upload ./site \
|
npx -p "@getmeli/cli" meli upload ./site
|
||||||
--url "https://pages.coastalcommits.com" \
|
--url "https://pages.coastalcommits.com"
|
||||||
--site "${{ vars.MELI_SITE_ID }}" \
|
--site "${{ vars.MELI_SITE_ID }}"
|
||||||
--token "${{ secrets.MELI_SECRET }}" \
|
--token "${{ secrets.MELI_SECRET }}"
|
||||||
--release "$CI_ACTION_REF_NAME_SLUG/${{ env.GITHUB_SHA }}" \
|
--release "$CI_ACTION_REF_NAME_SLUG/${{ env.GITHUB_SHA }}"
|
||||||
--branch "$CI_ACTION_REF_NAME_SLUG"
|
--branch "$CI_ACTION_REF_NAME_SLUG"
|
||||||
|
|
||||||
echo "\n${YELLOW}Deployed to ${BLUE}Meli ${YELLOW}on branch ${GREEN}$CI_ACTION_REF_NAME_SLUG${YELLOW}!"
|
echo "\n${YELLOW}Deployed to ${BLUE}Meli ${YELLOW}on branch ${GREEN}$CI_ACTION_REF_NAME_SLUG${YELLOW}!"
|
||||||
|
@ -129,8 +129,8 @@ jobs:
|
||||||
- name: Check commit message
|
- name: Check commit message
|
||||||
id: check_commit_message
|
id: check_commit_message
|
||||||
run: |
|
run: |
|
||||||
COMMIT_MESSAGE=$(echo "${{ steps.extract_commit_message.outputs.message }}")
|
COMMIT_MESSAGE="${{ steps.extract_commit_message.outputs.message }}"
|
||||||
OUTPUT=$(python .gitea/workflows/scripts/message.py "$COMMIT_MESSAGE")
|
OUTPUT="$(python .gitea/workflows/scripts/message.py "$COMMIT_MESSAGE")"
|
||||||
if [ "$OUTPUT" = "Usage: python message.py <commit_message>" ]; then
|
if [ "$OUTPUT" = "Usage: python message.py <commit_message>" ]; then
|
||||||
echo "Called without commit message!"
|
echo "Called without commit message!"
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -152,7 +152,7 @@ jobs:
|
||||||
- name: Update latest tag
|
- name: Update latest tag
|
||||||
if: steps.check_commit_message.outputs.latest_tag
|
if: steps.check_commit_message.outputs.latest_tag
|
||||||
run: |
|
run: |
|
||||||
COMMIT_MESSAGE=$(echo "${{ steps.extract_commit_message.outputs.message }}")
|
COMMIT_MESSAGE="$(echo "${{ steps.extract_commit_message.outputs.message }}")"
|
||||||
LATEST_TAG=${{ steps.check_commit_message.outputs.latest_tag }}
|
LATEST_TAG="${{ steps.check_commit_message.outputs.latest_tag }}"
|
||||||
git tag -fs $LATEST_TAG -m "$COMMIT_MESSAGE"
|
git tag -fs $LATEST_TAG -m "$COMMIT_MESSAGE"
|
||||||
git push origin $LATEST_TAG --force
|
git push origin $LATEST_TAG --force
|
||||||
|
|
Reference in a new issue