Skip to content

Commit 04241f7

Browse files
committed
github action
1 parent 32acdc1 commit 04241f7

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

.github/workflows/release.yaml

+9-9
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: Create Release
22

33
on:
44
push:
5-
tags:
6-
- 'v*.*.*'
5+
branches:
6+
- master
77

88
jobs:
99
release:
@@ -24,18 +24,18 @@ jobs:
2424
- name: Build the plugin
2525
run: npm run build
2626

27+
- name: Extract version from manifest.json
28+
id: get_version
29+
run: |
30+
version=$(jq -r '.version' manifest.json)
31+
echo "Version found: $version"
32+
echo "##[set-output name=version;]$version"
33+
2734
- name: Create GitHub Release
2835
id: create_release
2936
uses: actions/create-release@v1
3037
env:
3138
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32-
with:
33-
tag_name: ${{ github.ref }}
34-
release_name: Release ${{ github.ref }}
35-
body: |
36-
Description of the release.
37-
draft: false
38-
prerelease: false
3939

4040
- name: Upload Release Assets
4141
uses: actions/upload-release-asset@v1

manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "share-note-img-with-gist",
33
"name": "Quick Share Note to Gist",
4-
"version": "1.0.0",
4+
"version": "1.0.4",
55
"minAppVersion": "0.15.0",
66
"description": "Demonstrates some of the capabilities of the Obsidian API.",
77
"author": "Obsidian",

0 commit comments

Comments
 (0)