Skip to content

fix: serve correct mime type on rich 404s #11

fix: serve correct mime type on rich 404s

fix: serve correct mime type on rich 404s #11

Workflow file for this run

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