Skip to content

Commit

Permalink
ci: add version bump and release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mkpoli committed Oct 12, 2024
1 parent 0306701 commit b02d77f
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 3 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Create Draft Release

on:
push:
tags:
- 'v*.*.*'

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest

- name: Install dependencies
run: bun install

- name: Run build
run: bun run build

- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: 'dist/honkoku-toolbox.user.js'
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
## サポートされているサイト

- [みんなで翻刻](https://honkoku.org/app/)
- [日本語版Wikisource](https://ja.wikisource.org/)
- [日本語版 Wikisource](https://ja.wikisource.org/)

## 使い方

Expand All @@ -27,11 +27,17 @@ UserScript を入れてください。

## 開発

```
```bash
bun i
bun dev
```

### リリース

1. `bun run version`でバージョンを上げてタグコミットを作成しプッシュする。
2. GitHub Actions がビルドを行い、リリースページが自動的に作成されるのを待つ。
3. GreasyFork などの UserScript 共有サイトでリリースする。

## ライセンス

[MIT License](LICENSE) © 2023-2024 mkpoli
Binary file modified bun.lockb
Binary file not shown.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,16 @@
"preview": "vite preview",
"check": "svelte-check --tsconfig ./tsconfig.json",
"format": "biome format --write .",
"lint": "biome lint --write ."
"lint": "biome lint --write .",
"version": "bumpp-version"
},
"devDependencies": {
"@biomejs/biome": "1.9.3",
"@neodrag/svelte": "^2.0.6",
"@sveltejs/vite-plugin-svelte": "^4.0.0-next.6",
"@tsconfig/svelte": "^5.0.4",
"@types/codemirror": "^5.60.15",
"bumpp-version": "^1.0.2",
"svelte": "^5.0.0-next.264",
"svelte-check": "^4.0.5",
"svelte-preprocess": "^6.0.3",
Expand Down

0 comments on commit b02d77f

Please sign in to comment.