Skip to content

Commit

Permalink
fix(ci): Add support to bundle up files for plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
andymac4182 committed Apr 5, 2023
1 parent 33c7876 commit 250984b
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 3 deletions.
28 changes: 26 additions & 2 deletions .github/workflows/release-please.yml
Expand Up @@ -13,7 +13,31 @@ jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
- name: Checkout repository
uses: actions/checkout@v3

- id: release-please
uses: google-github-actions/release-please-action@v3
with:
release-type: node
package-name: release-please-action
package-name: release-please-action
extra-files: |
dist/manifest.json
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: "16.x" # You might need to adjust this value to your own version

- name: Upload release assets
if: ${{ steps.release-please.outputs.release_created }}
run: |
npm ci
npm run build --if-present
zip -r ${{ github.event.repository.name }}-${{ env.tag }}.zip dist
TAG=${{ steps.release-please.outputs.tag_name }}
FILES=$(echo dist/*)
gh release upload $TAG $FILES
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion dist/manifest.json
@@ -1,7 +1,7 @@
{
"id": "obsidian-confluence",
"name": "Confluence Integration",
"version": "0.0.0",
"version": "0.0.0", // x-release-please-version
"minAppVersion": "1.0.0",
"description": "This plugin allows you to publish your notes to Confluence",
"author": "obsidian-confluence",
Expand Down

0 comments on commit 250984b

Please sign in to comment.