Skip to content

Release automation

Release automation #3

Workflow file for this run

name: release
on:
push:
tags:
- "*.*.*"
branches:
- "*"
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.x"
- run: pip3 install build
- run: |
set -e
GOOS=darwin GOARCH=amd64 python3 -m build --sdist --wheel .
GOOS=darwin GOARCH=arm64 python3 -m build --sdist --wheel .
GOOS=freebsd GOARCH=amd64 python3 -m build --sdist --wheel .
GOOS=linux GOARCH=amd64 python3 -m build --sdist --wheel .
GOOS=linux GOARCH=arm64 python3 -m build --sdist --wheel .
GOOS=linux GOARCH=armv5 python3 -m build --sdist --wheel .
GOOS=linux GOARCH=armv6 python3 -m build --sdist --wheel .
GOOS=linux GOARCH=armv7 python3 -m build --sdist --wheel .
GOOS=linux GOARCH=ppc64le python3 -m build --sdist --wheel .
GOOS=linux GOARCH=s390x python3 -m build --sdist --wheel .
GOOS=windows GOARCH=amd64 python3 -m build --sdist --wheel .
GOOS=windows GOARCH=arm64 python3 -m build --sdist --wheel .
shell: bash
- uses: actions/upload-artifact@v3
with:
name: dist
path: dist