Skip to content

Commit

Permalink
Add workflow to release
Browse files Browse the repository at this point in the history
  • Loading branch information
larslockefeer committed Nov 11, 2021
1 parent 54380f7 commit 6ed0854
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 4 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Cut release
on:
workflow_dispatch:
inputs:
version_number:
description: 'Version Number'
required: true

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: yarn install
- name: Run the tests
run: yarn test
- name: Build the release artifacts
run: yarn build
- name: Create the release
run: gh release create "${github.event.inputs.version_number}" main.js styles.css manifest.json --title "${github.event.inputs.version_number} --draft"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
12 changes: 8 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "obsidian-sample-plugin",
"version": "0.9.7",
"description": "This is a sample plugin for Obsidian (https://obsidian.md)",
"name": "obsidian-plugin-todo",
"version": "0.2.0",
"description": "Text-based GTD in Obsidian. Collects all outstanding TODOs from your vault and presents them in lists Today, Scheduled, Inbox and Someday/Maybe.",
"main": "main.js",
"scripts": {
"build": "rollup --config rollup.config.js",
Expand All @@ -11,7 +11,11 @@
"test": "jest"
},
"keywords": [],
"author": "",
"author": "Lars Lockefeer",
"bugs": {
"url": "https://github.com/larslockefeer/obsidian-plugin-todo/issues"
},
"homepage": "https://github.com/larslockefeer/obsidian-plugin-todo#obsidian-todo-plugin",
"license": "MIT",
"devDependencies": {
"@rollup/plugin-commonjs": "^15.1.0",
Expand Down

0 comments on commit 6ed0854

Please sign in to comment.