From 1b9bed700f5421df3f706b8b4e4119e07100935a Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Sun, 7 Jan 2024 02:05:52 +0000 Subject: [PATCH] fix(workflow): fixed messy documentation deployment --- .forgejo/workflows/workflow.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/workflow.yaml b/.forgejo/workflows/workflow.yaml index 88bd12d..b595249 100644 --- a/.forgejo/workflows/workflow.yaml +++ b/.forgejo/workflows/workflow.yaml @@ -48,9 +48,9 @@ jobs: - name: Deploy the documentation to Meli (CoastalCommits Pages) run: | if [ -n "${{ github.base_ref }}" ]; then - release="${{ github.base_ref }}" + release="$(basename "{{ github.base_ref }}")" else - release="${{ github.ref }}" + release="$(basename "${{ github.ref }}")" fi echo "Deploying to Meli on branch $release" @@ -59,7 +59,7 @@ jobs: --url "https://pages.coastalcommits.com" \ --site "${{ vars.MELI_SITE_ID }}" \ --token "${{ secrets.MELI_SITE_SECRET }}" \ - --release "$release/$(git rev-parse --short HEAD)" \ + --release "$release/$(git rev-parse HEAD)" \ --branch "$release" echo "Deployed to Meli on branch $release"