Compare commits

..

No commits in common. "master" and "0.1.1" have entirely different histories.

3 changed files with 30 additions and 30 deletions

View file

@ -1,9 +1,9 @@
name: Release Obsidian plugin
on:
release:
types:
- published
push:
tags:
- "*"
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: ${{ 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 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 main.js
id: upload-main
@ -59,7 +59,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_ACTION_SECRET }}
with:
upload_url: ${{ github.event.release.upload_url }}
upload_url: ${{ steps.create_release.outputs.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: ${{ github.event.release.upload_url }}
upload_url: ${{ steps.create_release.outputs.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: ${{ github.event.release.upload_url }}
upload_url: ${{ steps.create_release.outputs.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.2",
"minAppVersion": "1.8.0",
"version": "0.1.0",
"minAppVersion": "1.18.0",
"description": "Share selected text as beautiful images",
"author": "Shawn",
"authorUrl": "https://github.com/iqijun",

View file

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