From 4bc312d59e77333faadd3f76c81b606c40c45a6b Mon Sep 17 00:00:00 2001 From: Frederic Brodbeck Date: Wed, 22 Mar 2023 14:37:53 +0100 Subject: [PATCH 1/6] updated workflow --- .github/workflows/main.yml | 35 +++++++++++++++++++++++++++++------ 1 file changed, 29 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ab21539..b7db6b8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,9 +8,11 @@ env: # Controls when the action will run. on: push: - branches: - - "master" - # Allows you to run this workflow manually from the Actions tab + tags: + - "*" + # branches: + # - "master" + # Allows you to run this workflow manually from the Actions tab workflow_dispatch: # A workflow run is made up of one or more jobs that can run sequentially or in parallel @@ -30,7 +32,28 @@ jobs: - run: npm run build - name: Install zip uses: montudor/action-zip@v1 - - name: Release - run: npx semantic-release + - run: cd ./dist ; zip -r ../dist.zip ./ + # - name: Release + # run: npx semantic-release + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: release + uses: actions/create-release@v1 + id: create_release + with: + draft: false + prerelease: false + release_name: ${{ steps.version.outputs.version }} + tag_name: ${{ github.ref }} + # body_path: CHANGELOG.md + env: + GITHUB_TOKEN: ${{ github.token }} + - name: upload artifact + uses: actions/upload-release-asset@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ github.token }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./dist.zip + asset_name: ${{ env.PLUGIN_NAME }}.zip + asset_content_type: application/zip From 72e279b999c8efcf9de59da5efdc38db14a4afcb Mon Sep 17 00:00:00 2001 From: Frederic Brodbeck Date: Wed, 22 Mar 2023 14:37:57 +0100 Subject: [PATCH 2/6] added license --- LICENSE | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..2a5820c --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023-current https://github.com/freder + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. From f378b5a058b660430df902ace5ffd12dc04318b7 Mon Sep 17 00:00:00 2001 From: Frederic Brodbeck Date: Wed, 22 Mar 2023 14:38:11 +0100 Subject: [PATCH 3/6] added marketplace manifest --- marketplace/icon.png | Bin 0 -> 1439 bytes marketplace/manifest.json | 7 +++++++ 2 files changed, 7 insertions(+) create mode 100644 marketplace/icon.png create mode 100644 marketplace/manifest.json diff --git a/marketplace/icon.png b/marketplace/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..b5602f43322e67637c8107bfcbe85077fc214ca4 GIT binary patch literal 1439 zcmaJ26?q@yXBEbD_W)&P z56q)iCL#Lt^w>lv@`j5now@sBfSUM=N|ow-r&PE)sjy|<#X{@Rph(EX_qw#^Sl zO1(1$eVnSWn)3YTX}fI9Yh!;?JaO)2=gaBBBK_*g*lE6Hq)AwUL&ao%T`+C9!HSnz zNl6psb$fORH4UBy)7l!$xTzOS8)ZxOpQcVxm+j$OWB6o-izetC6o!ZV3;yR;mqo;$ zgC+I_2Z|P0S*v(DGB{!Q10Ls&{!8v8ZN^rA$=j0egB2}^yWPTVmS!UN4)k96r5$s} zP;b>#T2nTgdTc$ub~x#tL7v{TO}4Buvr7mIGd;9UwUInIB|$Gh@`C)8M8Hcj01`z! zscOdRpo)?j=S<;g)%{6Ss<6kfP^$5kYFIXBxb|$)HwKxAN)h%zBCAU>>QFCJk(=N6 zoA9lYw{}c8?Ph7eoy9Yw=IF+;c`BC(x(d|?=|PIx{$WC5;Xproet_EDt`TE>d-R}O zqy?Q!TbIl<%u2F5iPp$Zw2jf0{aLxwMw;wYKjOoxGmqX_uf!ROsFru%t4TQ~S>NH$ zqjQEv@5me1yOEz4YeQSc+9*=suKc{=EqaT1+Ak@nv!cpX%9V8Jo~j+>|1xo5m83So ztCh>j8`rShO#Q58an5b>_uHQ1d7c_17$c8aVSAFIXwLJ_%84XnDufY5!fwbH%VkU* wmG7s?d@;@2;7@^a*S7D}w Date: Wed, 22 Mar 2023 14:04:01 +0100 Subject: [PATCH 4/6] changed workflow --- .github/workflows/main.yml | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b7db6b8..11eccbb 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,11 +8,11 @@ env: # Controls when the action will run. on: push: - tags: - - "*" - # branches: - # - "master" - # Allows you to run this workflow manually from the Actions tab + tags: + - "*" + # branches: + # - "master" + # Allows you to run this workflow manually from the Actions tab workflow_dispatch: # A workflow run is made up of one or more jobs that can run sequentially or in parallel @@ -30,9 +30,8 @@ jobs: node-version: "18" - run: npm install - run: npm run build - - name: Install zip - uses: montudor/action-zip@v1 - - run: cd ./dist ; zip -r ../dist.zip ./ + # - name: Install zip + # uses: montudor/action-zip@v1 # - name: Release # run: npx semantic-release # env: @@ -48,12 +47,3 @@ jobs: # body_path: CHANGELOG.md env: GITHUB_TOKEN: ${{ github.token }} - - name: upload artifact - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ github.token }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./dist.zip - asset_name: ${{ env.PLUGIN_NAME }}.zip - asset_content_type: application/zip From 80ab9b3afd05c1a10489b2b4826591da9ec0c8ce Mon Sep 17 00:00:00 2001 From: Frederic Brodbeck Date: Wed, 22 Mar 2023 14:40:46 +0100 Subject: [PATCH 5/6] version bump --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 994c5f5..4c36495 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "logseq-plugin-jump-to-block", - "version": "1.0.0", + "version": "1.0.1", "main": "dist/index.html", "logseq": { "id": "logseq-plugin-jump-to-block" From 5c59af2860078dca88eb0a504742a7d8638b0c50 Mon Sep 17 00:00:00 2001 From: Frederic Brodbeck Date: Wed, 22 Mar 2023 14:42:29 +0100 Subject: [PATCH 6/6] updated workflow --- .github/workflows/main.yml | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 11eccbb..46f3762 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,11 +8,11 @@ env: # Controls when the action will run. on: push: - tags: - - "*" - # branches: - # - "master" - # Allows you to run this workflow manually from the Actions tab + tags: + - "*" + # branches: + # - "master" + # Allows you to run this workflow manually from the Actions tab workflow_dispatch: # A workflow run is made up of one or more jobs that can run sequentially or in parallel @@ -30,8 +30,9 @@ jobs: node-version: "18" - run: npm install - run: npm run build - # - name: Install zip - # uses: montudor/action-zip@v1 + - name: Install zip + uses: montudor/action-zip@v1 + - run: zip -r dist.zip ./dist package.json # - name: Release # run: npx semantic-release # env: @@ -47,3 +48,12 @@ jobs: # body_path: CHANGELOG.md env: GITHUB_TOKEN: ${{ github.token }} + - name: upload artifact + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ github.token }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./dist.zip + asset_name: ${{ env.PLUGIN_NAME }}.zip + asset_content_type: application/zip