Skip to content

Commit 9a8f603

Browse files
authored
Merge pull request #1 from BackendStack21/fix/correct-repository-urls
Fix repository urls and GoReleaser
2 parents b5a2dc9 + 79617a1 commit 9a8f603

22 files changed

Lines changed: 95 additions & 58 deletions

File tree

.github/workflows/release.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
release:
13+
name: GoReleaser
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
20+
21+
- name: Set up Go
22+
uses: actions/setup-go@v5
23+
with:
24+
go-version-file: go.mod
25+
cache: true
26+
27+
- name: Run tests
28+
run: go test -race ./...
29+
30+
- name: Run GoReleaser
31+
uses: goreleaser/goreleaser-action@v6
32+
with:
33+
distribution: goreleaser
34+
version: "~> v2"
35+
args: release --clean
36+
env:
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.goreleaser.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ builds:
3131
- -trimpath
3232
ldflags:
3333
- -s -w
34-
- -X github.com/static-web/server/internal/version.Version={{.Version}}
35-
- -X github.com/static-web/server/internal/version.Commit={{.ShortCommit}}
36-
- -X github.com/static-web/server/internal/version.Date={{.Date}}
34+
- -X github.com/BackendStack21/static-web/internal/version.Version={{.Version}}
35+
- -X github.com/BackendStack21/static-web/internal/version.Commit={{.ShortCommit}}
36+
- -X github.com/BackendStack21/static-web/internal/version.Date={{.Date}}
3737

3838
archives:
3939
- id: default
@@ -68,8 +68,8 @@ changelog:
6868

6969
release:
7070
github:
71-
owner: static-web
72-
name: server
71+
owner: BackendStack21
72+
name: static-web
7373
draft: false
7474
prerelease: auto
7575
name_template: "v{{ .Version }}"

CLI.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -276,29 +276,29 @@ static-web version
276276
### 1. `go install` (recommended for Go developers)
277277

278278
```bash
279-
go install github.com/static-web/server/cmd/static-web@latest
279+
go install github.com/BackendStack21/static-web/cmd/static-web@latest
280280
```
281281

282282
Requires Go 1.26+. Installs to `$(go env GOPATH)/bin/static-web`. Add `$(go env GOPATH)/bin` to your `PATH` if not already there.
283283

284284
### 2. Homebrew (macOS / Linux)
285285

286286
```bash
287-
brew install static-web/tap/static-web
287+
brew install BackendStack21/tap/static-web
288288
```
289289

290290
Or with the full tap URL:
291291

292292
```bash
293-
brew tap static-web/tap https://github.com/static-web/homebrew-tap
293+
brew tap BackendStack21/tap https://github.com/BackendStack21/homebrew-tap
294294
brew install static-web
295295
```
296296

297297
Auto-updates with `brew upgrade`.
298298

299299
### 3. Pre-built binaries (GitHub Releases)
300300

301-
Download a binary for your platform from the [GitHub Releases](https://github.com/static-web/server/releases) page. Binaries are published for:
301+
Download a binary for your platform from the [GitHub Releases](https://github.com/BackendStack21/static-web/releases) page. Binaries are published for:
302302

303303
| Platform | File |
304304
|----------|------|
@@ -312,7 +312,7 @@ Download a binary for your platform from the [GitHub Releases](https://github.co
312312

313313
```bash
314314
# Replace X.Y.Z with the desired version, and PLATFORM/ARCH with your system
315-
curl -fsSL https://github.com/static-web/server/releases/download/vX.Y.Z/static-web_linux_amd64.tar.gz \
315+
curl -fsSL https://github.com/BackendStack21/static-web/releases/download/vX.Y.Z/static-web_linux_amd64.tar.gz \
316316
| tar -xz -C /usr/local/bin static-web
317317
chmod +x /usr/local/bin/static-web
318318
```
@@ -339,7 +339,7 @@ curl -fsSL https://static-web.dev/install.sh | sh -s -- --version v1.2.3
339339
### 5. Docker
340340

341341
```bash
342-
docker run --rm -p 8080:8080 -v "$(pwd)/dist:/public:ro" ghcr.io/static-web/server:latest
342+
docker run --rm -p 8080:8080 -v "$(pwd)/dist:/public:ro" ghcr.io/BackendStack21/static-web:latest
343343
```
344344

345345
See `USER_GUIDE.md` for full Docker and docker-compose examples.
@@ -365,9 +365,9 @@ Build command:
365365

366366
```bash
367367
go build \
368-
-ldflags="-X github.com/static-web/server/internal/version.Version=v1.2.3 \
369-
-X github.com/static-web/server/internal/version.Commit=$(git rev-parse --short HEAD) \
370-
-X github.com/static-web/server/internal/version.Date=$(date -u +%Y-%m-%dT%H:%M:%SZ)" \
368+
-ldflags="-X github.com/BackendStack21/static-web/internal/version.Version=v1.2.3 \
369+
-X github.com/BackendStack21/static-web/internal/version.Commit=$(git rev-parse --short HEAD) \
370+
-X github.com/BackendStack21/static-web/internal/version.Date=$(date -u +%Y-%m-%dT%H:%M:%SZ)" \
371371
-o bin/static-web ./cmd/static-web
372372
```
373373

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ VERSION := $(shell git describe --tags --always --dirty 2>/dev/null || echo dev)
99
COMMIT := $(shell git rev-parse --short HEAD 2>/dev/null || echo none)
1010
DATE := $(shell date -u +%Y-%m-%dT%H:%M:%SZ)
1111

12-
LDFLAGS := -X github.com/static-web/server/internal/version.Version=$(VERSION) \
13-
-X github.com/static-web/server/internal/version.Commit=$(COMMIT) \
14-
-X github.com/static-web/server/internal/version.Date=$(DATE)
12+
LDFLAGS := -X github.com/BackendStack21/static-web/internal/version.Version=$(VERSION) \
13+
-X github.com/BackendStack21/static-web/internal/version.Commit=$(COMMIT) \
14+
-X github.com/BackendStack21/static-web/internal/version.Date=$(DATE)
1515

1616
## build: compile the binary to bin/static-web (with version info)
1717
build:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ A production-grade, high-performance static web file server written in Go. Zero
2525

2626
```bash
2727
# Go install (requires Go 1.26+)
28-
go install github.com/static-web/server/cmd/static-web@latest
28+
go install github.com/BackendStack21/static-web/cmd/static-web@latest
2929

3030
# Serve the current directory
3131
static-web .

USER_GUIDE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ This guide covers everything you need to get `static-web` running in production
3434

3535
```bash
3636
# requires Go 1.26+
37-
git clone https://github.com/static-web/server.git
37+
git clone https://github.com/BackendStack21/static-web.git
3838
cd server
3939
make build # produces bin/static-web
4040
./bin/static-web # serves ./public on :8080
@@ -55,7 +55,7 @@ Point your browser at `http://localhost:8080`.
5555

5656
```bash
5757
# Or install directly with go install:
58-
go install github.com/static-web/server/cmd/static-web@latest
58+
go install github.com/BackendStack21/static-web/cmd/static-web@latest
5959
static-web .
6060
```
6161

cmd/static-web/main.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ import (
2222
"strconv"
2323
"strings"
2424

25-
"github.com/static-web/server/internal/cache"
26-
"github.com/static-web/server/internal/config"
27-
"github.com/static-web/server/internal/handler"
28-
"github.com/static-web/server/internal/server"
29-
"github.com/static-web/server/internal/version"
25+
"github.com/BackendStack21/static-web/internal/cache"
26+
"github.com/BackendStack21/static-web/internal/config"
27+
"github.com/BackendStack21/static-web/internal/handler"
28+
"github.com/BackendStack21/static-web/internal/server"
29+
"github.com/BackendStack21/static-web/internal/version"
3030
)
3131

3232
//go:embed config.toml.example

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/static-web/server
1+
module github.com/BackendStack21/static-web
22

33
go 1.26
44

internal/cache/cache_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"testing"
77
"time"
88

9-
"github.com/static-web/server/internal/cache"
9+
"github.com/BackendStack21/static-web/internal/cache"
1010
)
1111

1212
func makeFile(dataSize int) *cache.CachedFile {

internal/compress/compress.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"strings"
1111
"sync"
1212

13-
"github.com/static-web/server/internal/config"
13+
"github.com/BackendStack21/static-web/internal/config"
1414
)
1515

1616
// compressibleTypes is the set of MIME types eligible for compression.

0 commit comments

Comments
 (0)