Skip to content

Commit

Permalink
Release automation
Browse files Browse the repository at this point in the history
  • Loading branch information
dahlia committed Sep 18, 2023
1 parent c1ec99b commit 308b57c
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
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

0 comments on commit 308b57c

Please sign in to comment.