fix: Add docker to GoReleaser skip list to avoid build failure #24
Workflow file for this run
This file contains hidden or 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 | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| jobs: | |
| goreleaser: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| submodules: recursive | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.24' | |
| - name: Generate release notes from CHANGELOG.md | |
| id: notes | |
| run: | | |
| set -euo pipefail | |
| ver="${GITHUB_REF_NAME#v}" | |
| tag="${GITHUB_REF_NAME}" | |
| tmp=/tmp/RELEASE_NOTES.md | |
| section=$(sed -n "/^## \\[${ver}\\]/,/^## \\[/p" CHANGELOG.md || true) | |
| body=$(printf "%s\n" "$section" | sed '/^## \[/d' | tail -n +2) | |
| if [ -z "${body}" ]; then | |
| echo "No changelog section found for ${ver} in CHANGELOG.md" >&2 | |
| exit 1 | |
| fi | |
| { | |
| printf "## 🚀 Release %s\n\n" "$tag" | |
| printf "%s\n" "$body" | |
| } > "$tmp" | |
| - name: Import GPG key | |
| id: import_gpg | |
| uses: crazy-max/ghaction-import-gpg@v6 | |
| with: | |
| gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} | |
| passphrase: ${{ secrets.GPG_PASSPHRASE }} | |
| - name: Run GoReleaser | |
| uses: goreleaser/goreleaser-action@v6 | |
| with: | |
| version: latest | |
| args: release --clean --release-notes /tmp/RELEASE_NOTES.md --skip=aur,aur-source,homebrew,scoop,docker | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }} |