Skip to content

Release 13.3.0 (#1600) #26

Release 13.3.0 (#1600)

Release 13.3.0 (#1600) #26

name: Draft Release from Tag
on:
workflow_dispatch:
push:
tags:
- 'v*'
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: "Checkout code"
uses: actions/checkout@v6
- name: "Fetch unshallow repo"
run: git fetch --prune --unshallow
- name: "Install Go"
uses: actions/setup-go@v6
with:
go-version: '1.24.x'
- name: "Install Rust"
uses: dtolnay/rust-toolchain@stable
- name: "Generate static app config"
run: make config
# Passing the raw SSH private key causes an error:
# Load key "/tmp/id_*": invalid format
#
# Testing locally we discovered that storing in a file and passing the file path works.
#
# NOTE:
# The file aur_key must be added to .gitignore otherwise a 'dirty state' error is triggered in goreleaser.
# https://github.com/goreleaser/goreleaser/blob/9505cf7054b05a6e9a4a36f806d525bc33660e9e/www/docs/errors/dirty.md
#
# You must also reduce the permissions from a default of 0644 to 600 to avoid a 'bad permissions' error.
- name: "Store AUR_KEY in local file"
run: echo '${{ secrets.AUR_KEY }}' > '${{ github.workspace }}/aur_key' && chmod 600 '${{ github.workspace }}/aur_key'
- name: "Run GoReleaser"
uses: goreleaser/goreleaser-action@v6
with:
# goreleaser version (NOT goreleaser-action version)
# update inline with the Makefile
version: '~> v2'
args: release --clean
env:
AUR_KEY: '${{ github.workspace }}/aur_key'
GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }}