From e233bb5753878116afcf585f21d9ba96ebdcfa03 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Thu, 23 Nov 2023 20:30:51 -0300 Subject: [PATCH] release binaries. --- .github/workflows/release.yml | 42 +++++++++++++++++++++++++++++++++++ README.md | 6 ++++- 2 files changed, 47 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..a93b557 --- /dev/null +++ b/.github/workflows/release.yml @@ -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 diff --git a/README.md b/README.md index 0a64f52..2c1fd9a 100644 --- a/README.md +++ b/README.md @@ -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: