Skip to content

docs: upgrade dossier distillation guide with linguistic compression … #4

docs: upgrade dossier distillation guide with linguistic compression …

docs: upgrade dossier distillation guide with linguistic compression … #4

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
build:
name: Build ${{ matrix.goos }}/${{ matrix.goarch }}
runs-on: ubuntu-latest
strategy:
matrix:
include:
- goos: darwin
goarch: arm64
- goos: darwin
goarch: amd64
- goos: linux
goarch: arm64
- goos: linux
goarch: amd64
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Build
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
CGO_ENABLED: 0
run: |
go build -trimpath -ldflags="-s -w -X main.version=${{ github.ref_name }}" \
-o dossier-${{ matrix.goos }}-${{ matrix.goarch }} \
./cmd/dossier
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: dossier-${{ matrix.goos }}-${{ matrix.goarch }}
path: dossier-${{ matrix.goos }}-${{ matrix.goarch }}
release:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
merge-multiple: true
- name: Create checksums
run: sha256sum dossier-* > checksums.txt
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
files: |
dossier-*
checksums.txt
generate_release_notes: true