Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 831b081fc7 | |||
| fde423a32b | |||
| 55a82f75a9 | |||
| f85abd43c4 | |||
| 0f66ebf52a |
@@ -7,6 +7,7 @@ on:
|
||||
paths:
|
||||
- 'packaging/AUR/PKGBUILD.git'
|
||||
- 'packaging/AUR/.SRCINFO.git'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
publish-aur-git:
|
||||
|
||||
@@ -3,6 +3,7 @@ name: Release Standalone Builder
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@@ -103,3 +104,37 @@ jobs:
|
||||
commit_email: ${{ github.actor }}@users.noreply.github.com
|
||||
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
|
||||
commit_message: "Update kewt-bin to ${{ github.ref_name }}"
|
||||
|
||||
publish-homebrew:
|
||||
runs-on: local
|
||||
needs: build
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Render Formula and push to GitHub
|
||||
run: |
|
||||
TAG="${GITHUB_REF#refs/tags/}"
|
||||
VERSION="${TAG#v}"
|
||||
|
||||
curl -sL -o kewt-binary \
|
||||
"https://git.krzak.org/N0VA/kewt/releases/download/${TAG}/kewt"
|
||||
CHECKSUM=$(sha256sum kewt-binary | awk '{print $1}')
|
||||
rm -f kewt-binary
|
||||
|
||||
mkdir -p brew-work/Formula
|
||||
sed -e "s/VERSION_PLACEHOLDER/${VERSION}/g" \
|
||||
-e "s/SHA256SUM_PLACEHOLDER/${CHECKSUM}/g" \
|
||||
packaging/homebrew/kewt.rb.template > brew-work/Formula/kewt.rb
|
||||
|
||||
cd brew-work
|
||||
git init
|
||||
git remote add origin https://x-access-token:${{ secrets.GH_RELEASE_TOKEN }}@github.com/n0va-bot/homebrew-tap.git
|
||||
git fetch origin main || true
|
||||
git checkout main 2>/dev/null || git checkout --orphan main
|
||||
|
||||
git add Formula/kewt.rb
|
||||
git config user.name "${{ github.actor }}"
|
||||
git config user.email "${{ github.actor }}@users.noreply.github.com"
|
||||
git commit -m "Update kewt to ${TAG}" || echo "No changes to commit"
|
||||
git push origin main
|
||||
|
||||
13
README.md
13
README.md
@@ -22,9 +22,20 @@ On Arch Linux, _kewt_ is available on the AUR:
|
||||
- [kewt-bin](https://aur.archlinux.org/packages/kewt-bin) — prebuilt standalone binary from the latest release
|
||||
- [kewt-git](https://aur.archlinux.org/packages/kewt-git) — built from the latest git source
|
||||
|
||||
On macOS or Linux with Homebrew:
|
||||
|
||||
```sh
|
||||
brew tap n0va-bot/tap
|
||||
brew install kewt
|
||||
```
|
||||
|
||||
## Contributing
|
||||
|
||||
Either through a pull request to the **home** repository ([N0VA/kewt](https://git.krzak.org/N0VA/kewt)) or by sending a patch to my email address ([n0va@krzak.org](mailto:n0va@krzak.org))
|
||||
Either through a pull request to the **home** repository ([N0VA/kewt](https://git.krzak.org/N0VA/kewt)) or by sending a patch to my email address ([n0va@krzak.org](mailto:n0va@krzak.org?subject=%5Bkewt%5D%20something)) with the subjectline being `[kewt] something`.
|
||||
|
||||
## License
|
||||
|
||||
ISC
|
||||
|
||||
## Credits
|
||||
|
||||
|
||||
16
packaging/homebrew/kewt.rb.template
Normal file
16
packaging/homebrew/kewt.rb.template
Normal file
@@ -0,0 +1,16 @@
|
||||
class Kewt < Formula
|
||||
desc "Minimalist static site generator inspired by werc"
|
||||
homepage "https://kewt.krzak.org"
|
||||
url "https://github.com/n0va-bot/kewt/releases/download/vVERSION_PLACEHOLDER/kewt"
|
||||
sha256 "SHA256SUM_PLACEHOLDER"
|
||||
license "ISC"
|
||||
version "VERSION_PLACEHOLDER"
|
||||
|
||||
def install
|
||||
bin.install "kewt"
|
||||
end
|
||||
|
||||
test do
|
||||
system "#{bin}/kewt", "--version"
|
||||
end
|
||||
end
|
||||
@@ -45,6 +45,13 @@ On Arch Linux, _kewt_ is available on the AUR:
|
||||
- [kewt-bin](https://aur.archlinux.org/packages/kewt-bin) — prebuilt standalone binary from the latest release
|
||||
- [kewt-git](https://aur.archlinux.org/packages/kewt-git) — built from the latest git source
|
||||
|
||||
On macOS or Linux with Homebrew:
|
||||
|
||||
```sh
|
||||
brew tap n0va-bot/tap
|
||||
brew install kewt
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```sh
|
||||
|
||||
Reference in New Issue
Block a user