mirror of
https://github.com/nathonius/obsidian-github-link.git
synced 2026-07-22 09:20:25 +00:00
27 lines
592 B
YAML
27 lines
592 B
YAML
name: Draft Release
|
|
on:
|
|
push:
|
|
tags:
|
|
- "*"
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: "20.x"
|
|
- name: Build
|
|
run: |
|
|
npm install
|
|
npm run build
|
|
- name: Create Draft
|
|
env:
|
|
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
|
run: |
|
|
tag="${GITHUB_REF#refs/tags/}"
|
|
|
|
gh release create "$tag" \
|
|
--title="Release v$tag" \
|
|
--draft \
|
|
main.js manifest.json styles.css
|