Skip to content

Commit

Permalink
feat: Create manual release to align with Obsidian requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
andymac4182 committed Apr 18, 2023
1 parent 9514e2f commit a9b90e5
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/release-please.yml
Expand Up @@ -40,12 +40,15 @@ jobs:
npm run prettier-check -ws --if-present
npm run build -ws --if-present
ORIGINAL_TAG=${{ steps.release-please.outputs.tag_name }}
IFS='-v' read -ra PARTS <<< "$ORIGINAL_TAG"
TAG="${PARTS[-1]}"
cd packages/obsidian
zip -r ${{ github.event.repository.name }}-${{ env.tag }}.zip dist
zip -r ${{ github.event.repository.name }}-$TAG.zip dist
TAG=${{ steps.release-please.outputs.tag_name }}
FILES=$(echo dist/*)
gh release upload $TAG $FILES
gh release create $TAG -t $TAG --generate-notes --latest --target ${{ steps.release-please.outputs.sha }} ./dist/*
echo $FILES
NEW_TAG="${TAG#v}"
gh release edit $TAG -t $NEW_TAG
Expand Down

0 comments on commit a9b90e5

Please sign in to comment.