Skip to content

Fix server switching #7

Fix server switching

Fix server switching #7

Workflow file for this run

name: Release
on:
push:
tags:
- "v*"
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- goos: linux
goarch: amd64
- goos: linux
goarch: arm64
- goos: darwin
goarch: amd64
- goos: darwin
goarch: arm64
- goos: windows
goarch: amd64
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.25"
- name: Build
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
CGO_ENABLED: 0
run: |
ext=""
if [ "$GOOS" = "windows" ]; then ext=".exe"; fi
out="pwdsafe-cli-${GOOS}-${GOARCH}${ext}"
go build -trimpath -ldflags="-s -w" -o "$out" .
sha256sum "$out" > "$out.sha256"
- uses: actions/upload-artifact@v4
with:
name: pwdsafe-cli-${{ matrix.goos }}-${{ matrix.goarch }}
path: |
pwdsafe-cli-*
!pwdsafe-cli-*.sha256
pwdsafe-cli-*.sha256
release:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
path: dist
merge-multiple: true
- name: Release
uses: softprops/action-gh-release@v2
with:
files: dist/*
generate_release_notes: true