-
Notifications
You must be signed in to change notification settings - Fork 8
55 lines (44 loc) · 1.31 KB
/
publish-latest-dev-release-to-github.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Publish Development Build
on:
pull_request:
types: [closed]
branches: [main]
jobs:
create-github-prerelease:
runs-on: ubuntu-latest
name: create and publish
if: github.event.pull_request.merged == true
steps:
- uses: actions/checkout@v4
- name: Initialize Python
uses: actions/setup-python@v1
with:
python-version: "3.11"
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
with:
platforms: all
- name: Install cibuildwheel
run: python -m pip install cibuildwheel
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse --archs x86_64
- name: Build binary wheel and a source tarball
run: pipx run build --sdist
- name: copy artifacts to dist folder
run: cp ./wheelhouse/* ./dist/
- uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
automatic_release_tag: latest
prerelease: true
title: Development Build
files: |
dist/*
LICENSE
containerbuild:
uses: ./.github/workflows/container-build.yml
needs: create-github-prerelease
secrets: inherit
with:
build-version: latest
tags: "main, latest"