Skip to content

Commit

Permalink
Update GitHub Action file
Browse files Browse the repository at this point in the history
  • Loading branch information
otaviocc committed Oct 31, 2023
1 parent 19df7eb commit dc5fc06
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release Obsidian Plug-in
name: Release Obsidian plugin

on:
push:
Expand All @@ -8,21 +8,27 @@ on:
jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "20.x"
- name: Build Plug-in

- name: Build plugin
run: |
npm install
npm run build
- name: Create Plug-in Release
- name: Create plugin release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
tag="${GITHUB_REF#refs/tags/}"
gh release create "$tag" \
--title="$tag" \
main.js manifest.json
--draft \
main.js manifest.json

0 comments on commit dc5fc06

Please sign in to comment.