Skip to content

docs: prepare v1.2.5 patch release notes (#246) #66

docs: prepare v1.2.5 patch release notes (#246)

docs: prepare v1.2.5 patch release notes (#246) #66

Workflow file for this run

name: Release
on:
push:
tags:
- "v*"
workflow_dispatch:
inputs:
tag:
description: "Tag name (e.g. v0.4.0)"
required: true
ref:
description: "Commit SHA to tag"
required: true
permissions: read-all
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
attestations: write
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
fetch-depth: 0
ref: ${{ github.event.inputs.ref || github.ref }}
- uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6
with:
go-version-file: go.mod
cache: true
- name: Create and push tag
if: github.event_name == 'workflow_dispatch'
run: |
git tag ${{ github.event.inputs.tag }}
git push origin ${{ github.event.inputs.tag }}
- name: Release (tag push)
if: github.event_name == 'push'
uses: goreleaser/goreleaser-action@f06c13b6b1a9625abc9e6e439d9c05a8f2190e94 # v7
with:
version: "~> v2"
args: release --clean --skip=homebrew,scoop
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SKIP_GH_RELEASE: "false"
AUR_SSH_KEY: ${{ secrets.AUR_SSH_KEY }}
MACOS_SIGN_P12: ${{ secrets.MACOS_SIGN_P12 }}
MACOS_SIGN_PASSWORD: ${{ secrets.MACOS_SIGN_PASSWORD }}
NOTARIZE_KEY: ${{ secrets.NOTARIZE_KEY }}
NOTARIZE_KEY_ID: ${{ secrets.NOTARIZE_KEY_ID }}
NOTARIZE_ISSUER_ID: ${{ secrets.NOTARIZE_ISSUER_ID }}
- name: Release (manual)
if: github.event_name == 'workflow_dispatch'
uses: goreleaser/goreleaser-action@f06c13b6b1a9625abc9e6e439d9c05a8f2190e94 # v7
with:
version: "~> v2"
args: release --clean --skip=homebrew,scoop
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GORELEASER_CURRENT_TAG: ${{ github.event.inputs.tag }}
SKIP_GH_RELEASE: "false"
AUR_SSH_KEY: ${{ secrets.AUR_SSH_KEY }}
MACOS_SIGN_P12: ${{ secrets.MACOS_SIGN_P12 }}
MACOS_SIGN_PASSWORD: ${{ secrets.MACOS_SIGN_PASSWORD }}
NOTARIZE_KEY: ${{ secrets.NOTARIZE_KEY }}
NOTARIZE_KEY_ID: ${{ secrets.NOTARIZE_KEY_ID }}
NOTARIZE_ISSUER_ID: ${{ secrets.NOTARIZE_ISSUER_ID }}
- name: Attest release artifacts
uses: actions/attest-build-provenance@0f67c3f4856b2e3261c31976d6725780e5e4c373 # v4.1.1
with:
subject-path: |
dist/sendit_*.tar.gz
dist/sendit_*.zip
dist/sendit_*.deb
dist/sendit_*.rpm
dist/sendit_*.pkg.tar.zst
dist/checksums.txt