mirror of
https://github.com/iqijun/obsidian-image-share.git
synced 2026-07-22 12:20:27 +00:00
Compare commits
6 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
aaaf27b479 | ||
|
|
90597a37e4 | ||
|
|
a2624ebabf | ||
|
|
5fe9474f5a | ||
|
|
84ffe0e601 | ||
|
|
45faa56813 |
3 changed files with 30 additions and 30 deletions
54
.github/workflows/release.yml
vendored
54
.github/workflows/release.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
{
|
||||
"0.1.0": "1.8.0"
|
||||
"0.1.2": "1.8.0"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue