Skip to content

Commit

Permalink
Initial release
Browse files Browse the repository at this point in the history
  • Loading branch information
dahlia committed Oct 22, 2024
1 parent 5f5dd75 commit 87b2bd2
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 23 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
branches:
- main
- stable
tags: "*.*.*"

jobs:
check:
Expand All @@ -15,6 +17,11 @@ jobs:
bun-version: latest
- run: bun install
- run: bun check
- if: github.ref_type == 'tag'
run: |
set -ex
[[ "$(jq -r .version package.json)" = "$GITHUB_REF_NAME" ]]
! grep -i "to be released" CHANGES.md
build-image:
needs: [check]
Expand Down Expand Up @@ -92,6 +99,31 @@ jobs:
cache-to:
type=registry,ref=ghcr.io/${{ github.repository }}:build-cache,mode=max

release:
needs: [check]
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- id: extract-changelog
uses: dahlia/submark@5a5ff0a58382fb812616a5801402f5aef00f90ce
with:
input-file: CHANGES.md
heading-level: 2
heading-title-text: version ${{ github.ref_name }}
ignore-case: true
omit-heading: true
- run: 'cat "$CHANGES_FILE"'
env:
CHANGES_FILE: ${{ steps.extract-changelog.outputs.output-file }}
- if: github.event_name == 'push' && github.ref_type == 'tag'
uses: softprops/action-gh-release@v1
with:
body_path: ${{ steps.extract-changelog.outputs.output-file }}
name: Hollo ${{ github.ref_name }}
generate_release_notes: false

publish-docs:
if: |
github.event_name == 'push' &&
Expand Down
7 changes: 7 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Hollo changelog
===============

Version 0.1.0
-------------

Released on October 22, 2024. Initial release.
7 changes: 1 addition & 6 deletions docs/src/content/docs/install/manual.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,11 @@ Installation

import { Steps } from "@astrojs/starlight/components";

<Aside>
Hollo currently doesn't have a stable release. You can check out the latest
code from the `main` branch on GitHub.
</Aside>

<Steps>
1. Check out Hollo's latest code from [GitHub]:

~~~~ sh frame="none"
git clone https://github.com/dahlia/hollo.git
git clone -b stable https://github.com/dahlia/hollo.git
cd hollo/
~~~~

Expand Down
7 changes: 1 addition & 6 deletions docs/src/content/docs/ja/install/manual.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,11 @@ Holloは手動でインストールすることもできます。

import { Steps } from "@astrojs/starlight/components";

<Aside>
Holloは現時点ではまだ安定版がありません。
GitHubの`main`ブランチから最新のコードを取得できます。
</Aside>

<Steps>
1. Hollonの最新コードを[GitHub]から取得します:

~~~~ sh frame="none"
git clone https://github.com/dahlia/hollo.git
git clone -b stable https://github.com/dahlia/hollo.git
cd hollo/
~~~~

Expand Down
7 changes: 1 addition & 6 deletions docs/src/content/docs/ko/install/manual.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,11 @@ Hollo는 수동으로도 설치할 수 있습니다.

import { Steps } from "@astrojs/starlight/components";

<Aside>
Hollo는 현재로서는 아직 안정 버전이 없습니다.
GitHub 저장소의 `main` 브랜치에서 최신 코드를 받을 수 있습니다.
</Aside>

<Steps>
1. Hollo의 최신 코드를 [GitHub] 저장소에서 받습니다:

~~~~ sh frame="none"
git clone https://github.com/dahlia/hollo.git
git clone -b stable https://github.com/dahlia/hollo.git
cd hollo/
~~~~

Expand Down
6 changes: 1 addition & 5 deletions docs/src/content/docs/zh-cn/install/manual.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,11 @@ Hollo 可以手动安装在您的服务器上。本指南将引导您完成在

import { Steps } from "@astrojs/starlight/components";

<Aside>
Hollo 目前没有稳定版本。您可以从 GitHub 的 `main` 分支查看最新代码。
</Aside>

<Steps>
1.[GitHub] 获取 Hollo 的最新代码:

~~~~ sh frame="none"
git clone https://github.com/dahlia/hollo.git
git clone -b stable https://github.com/dahlia/hollo.git
cd hollo/
~~~~

Expand Down

0 comments on commit 87b2bd2

Please sign in to comment.