fix: serve correct mime type on rich 404s #11
Workflow file for this run
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: Release Gosherve | |
on: | |
push: | |
tags: ["*"] | |
jobs: | |
build: | |
name: Build and Release 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: Release gosherve | |
id: build | |
run: | | |
goreleaser release --debug --clean | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Upload binary artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: gosherve-dist | |
if-no-files-found: error | |
path: dist |