fix: trim both suffix and prefix from path when looking up redirects #59
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |