diff --git a/.forgejo/workflows/workflow.yaml b/.forgejo/workflows/workflow.yaml index 6ffd815..66c139e 100644 --- a/.forgejo/workflows/workflow.yaml +++ b/.forgejo/workflows/workflow.yaml @@ -44,13 +44,24 @@ jobs: run: | export PATH="$HOME/.local/bin:$PATH" mkdocs build + continue-on-error: true - name: Deploy the documentation to Meli (CoastalCommits Pages) run: | - npx -p "@getmeli/cli" meli upload ./site \ - --url "http://pages.coastalcommits.com" \ - --site "${{ variables.MELI_SITE }}" \ - --token "${{ secrets.MELI_SITE_SECRET }}" \ - --release "$GITEA_SHA" + if [ -n "${{ github.base_ref }}" ]; then + release="${{ github.base_ref }}" + else + release="${{ github.ref }}" + fi + + echo "Deploying to Meli on branch $release" + + npx -p "@getmeli/cli" meli upload ./site \ + --url "http://pages.coastalcommits.com" \ + --site "${{ variables.MELI_SITE }}" \ + --token "${{ secrets.MELI_SITE_SECRET }}" \ + --release "$release" + + echo "Deployed to Meli on branch $release" env: GITEA_TOKEN: ${{ secrets.COASTALCOMMITSTOKEN }} continue-on-error: true