From 125f9077d49d87f5f9609c29f22eba4f29725012 Mon Sep 17 00:00:00 2001 From: Ayu Date: Mon, 8 Apr 2024 23:31:13 +0100 Subject: [PATCH] ci: add release workflow --- .github/workflows/release.yml | 34 ++++++++++++++++++++++++++++++++++ README.md | 4 +++- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..6fa7e72 --- /dev/null +++ b/.github/workflows/release.yml @@ -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 diff --git a/README.md b/README.md index c9438d5..e9a6c9c 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Obsidian fontsource +# Obsidian Fontsource ![Hero Image](./hero.png) @@ -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)