Skip to content

fix: trim both suffix and prefix from path when looking up redirects #59

fix: trim both suffix and prefix from path when looking up redirects

fix: trim both suffix and prefix from path when looking up redirects #59

Workflow file for this run

name: Build Gosherve
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build:
name: Build Gosherve
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
- name: Run tests
run: |
go test -v ./...
- name: Setup goreleaser
run: |
sudo snap install --classic goreleaser
- name: Build gosherve
id: build
run: |
goreleaser build --rm-dist --snapshot --debug
- name: Upload binary artifact
uses: actions/upload-artifact@v4
with:
name: gosherve-dist
if-no-files-found: error
path: dist