Compare commits

...

6 commits

Author SHA1 Message Date
xingguishuai
aaaf27b479 release 2025-05-01 23:48:46 +08:00
骐骏
90597a37e4
Update release.yml 2025-05-01 23:36:23 +08:00
骐骏
a2624ebabf
Update release.yml 2025-05-01 23:22:31 +08:00
xingguishuai
5fe9474f5a style 2025-05-01 22:25:23 +08:00
xingguishuai
84ffe0e601 style 2025-05-01 22:24:36 +08:00
骐骏
45faa56813
Update versions.json
update version
2025-05-01 19:04:51 +08:00
3 changed files with 30 additions and 30 deletions

View file

@ -1,9 +1,9 @@
name: Release Obsidian plugin
on:
push:
tags:
- "*"
release:
types:
- published
env:
PLUGIN_NAME: Image-share.
@ -30,28 +30,28 @@ jobs:
ls
echo "::set-output name=tag_name::$(git tag --sort version:refname | tail -n 1)"
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_ACTION_SECRET }}
VERSION: ${{ github.ref }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: false
prerelease: false
# - name: Create Release
# id: create_release
# uses: actions/create-release@v1
# env:
# GITHUB_TOKEN: ${{ secrets.RELEASE_ACTION_SECRET }}
# VERSION: ${{ github.ref }}
# with:
# tag_name: ${{ github.ref }}
# release_name: ${{ github.ref }}
# draft: false
# prerelease: false
- name: Upload zip file
id: upload-zip
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_ACTION_SECRET }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./${{ env.PLUGIN_NAME }}.zip
asset_name: ${{ env.PLUGIN_NAME }}-${{ steps.build.outputs.tag_name }}.zip
asset_content_type: application/zip
# - name: Upload zip file
# id: upload-zip
# uses: actions/upload-release-asset@v1
# env:
# GITHUB_TOKEN: ${{ secrets.RELEASE_ACTION_SECRET }}
# with:
# upload_url: ${{ github.event.release.upload_url }}
# asset_path: ./${{ env.PLUGIN_NAME }}.zip
# asset_name: ${{ env.PLUGIN_NAME }}-${{ steps.build.outputs.tag_name }}.zip
# asset_content_type: application/zip
- name: Upload main.js
id: upload-main
@ -59,7 +59,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_ACTION_SECRET }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./main.js
asset_name: main.js
asset_content_type: text/javascript
@ -70,7 +70,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_ACTION_SECRET }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./manifest.json
asset_name: manifest.json
asset_content_type: application/json
@ -81,7 +81,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_ACTION_SECRET }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./styles.css
asset_name: styles.css
asset_content_type: text/css

View file

@ -1,8 +1,8 @@
{
"id": "image-share",
"name": "Image Share",
"version": "0.1.0",
"minAppVersion": "1.18.0",
"version": "0.1.2",
"minAppVersion": "1.8.0",
"description": "Share selected text as beautiful images",
"author": "Shawn",
"authorUrl": "https://github.com/iqijun",

View file

@ -1,3 +1,3 @@
{
"0.1.0": "1.8.0"
"0.1.2": "1.8.0"
}