Skip to content

more improved error handling and state restoration #8

more improved error handling and state restoration

more improved error handling and state restoration #8

Workflow file for this run

name: Release
on:
push:
tags:
- "v*.*.*"
jobs:
goreleaser:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
- name: Dependencies
uses: daaku/gh-action-apt-install@v4
with:
packages: libasound2-dev
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: stable
cache-dependency-path: go.sum
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: "~> v2"
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
pypi:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Dependencies
uses: daaku/gh-action-apt-install@v4
with:
packages: libasound2-dev
- uses: actions/setup-go@v5
with:
go-version: stable
cache-dependency-path: go.sum
- name: Install deps
run: >-
python -m pip install --upgrade pip &&
pip install twine==5.1.1 build==1.2.2.post1 setuptools-scm==8.1.0
- name: Build
run: python -m build --wheel
- name: Upload
run: twine upload dist/*
env:
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}