Skip to content

Commit

Permalink
feat: Update to publish to obsidian-integration repo
Browse files Browse the repository at this point in the history
  • Loading branch information
andymac4182 committed Apr 26, 2023
1 parent 5f8d81e commit c1b7b98
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
12 changes: 10 additions & 2 deletions .build/upload-release-assets.sh
Expand Up @@ -21,8 +21,16 @@ echo "CurrentVersion=$TAG" >> "$GITHUB_OUTPUT"
cd packages/obsidian

FILES=$(echo dist/*)
gh release create $TAG -t $TAG --generate-notes --latest --target $SHA ./dist/*
gh release create $TAG -R markdown-confluence/obsidian-integration -t $TAG --generate-notes --latest --target $SHA ./dist/*
echo $FILES

cd $ORIGINAL_PATH
./.build/sign-release.sh $TAG

git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com

cp manifest.json ./.release-repo/manifest.json
cd ./.release-repo
git add manifest.json
git commit -m "Update manifest for $TAG release."
git push
10 changes: 9 additions & 1 deletion .github/workflows/release-please.yml
Expand Up @@ -48,12 +48,20 @@ jobs:
if: ${{ steps.release-please.outputs.release_created }}
run: npm install -g npm@latest

- name: Checkout source repository
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
with:
repository: markdown-confluence/obsidian-integration
token: ${{ secrets.RELEASE_PLEASE_PAT }}
path: ./.release-repo

- name: Upload release assets
id: releaseassets
if: ${{ steps.release-please.outputs.release_created }}
run: ./.build/upload-release-assets.sh ${{ steps.release-please.outputs.tag_name }} ${{ steps.release-please.outputs.sha }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.RELEASE_PLEASE_PAT }}

- name: Publish to NPM
if: ${{ steps.release-please.outputs.release_created }}
run: |
Expand Down

0 comments on commit c1b7b98

Please sign in to comment.