Skip to content

Commit

Permalink
ci: add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ayuhito committed Apr 8, 2024
1 parent 474ef31 commit 125f907
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Release Version

on:
push:
tags:
- "*"

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 20

- uses: pnpm/action-setup@v3
with:
version: 8
run_install: true

- name: Build
run: pnpm build

- name: Release
uses: softprops/action-gh-release@v2
with:
files: |
main.js
manifest.json
LICENSE
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Obsidian fontsource
# Obsidian Fontsource

![Hero Image](./hero.png)

Expand All @@ -8,6 +8,8 @@ This is a simple plugin to import [Fontsource](https://fontsource.org/) custom f

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Releasing a new version is done by creating a new tag and pushing it to the repository. The GitHub Actions workflow will build and release the necessary files.

## License

[MIT](LICENSE)

0 comments on commit 125f907

Please sign in to comment.