release binaries.

This commit is contained in:
fiatjaf
2023-11-23 20:30:51 -03:00
parent d58cb7f000
commit e233bb5753
2 changed files with 47 additions and 1 deletions

42
.github/workflows/release.yml vendored Normal file
View File

@@ -0,0 +1,42 @@
name: build binary for all platforms
on:
push:
tags:
- '*'
permissions:
contents: write
jobs:
make-release:
runs-on: ubuntu-latest
steps:
- uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
build-all-for-all:
runs-on: ubuntu-latest
needs:
- make-release
strategy:
matrix:
goos: [linux, freebsd, darwin, windows]
goarch: [amd64, arm64]
exclude:
- goarch: arm64
goos: windows
steps:
- uses: actions/checkout@v3
- uses: wangyoucao577/go-release-action@v1.40
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
overwrite: true
md5sum: false
sha256sum: false
compress_assets: false

View File

@@ -21,7 +21,7 @@ For more information about njump's philosophy and its use, read the presentation
| `30024` | Draft Long-form Content | [23](23.md) |
| `30311` | Live Event | [53](53.md) |
## Development
## Running
### Running locally
@@ -29,6 +29,10 @@ The easiest way to start is to run the development server with `just` (if you ha
For live-reload you can use [`air`](https://github.com/cosmtrek/air) and start it with `air -c .air.toml` -- this will run it without the local cache, which can be annoying if you're not specifically debugging the part of the code that loads content, so you may want to run it with `air -c .air.toml --build.cmd 'go build -o ./tmp/main .'`. These run modes will recompile the Tailwind bundle on every restart and they assume you have [the `tailwind` CLI](https://tailwindcss.com/docs/installation) installed globally.
### Running from a precompiled binary
You can grab one from the [releases](releases) and just run it.
### Docker
To build and run in a Docker container: