Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add release build workflow using nm-actions #2335

Merged
merged 1 commit into from
Jun 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions .github/workflows/build-release-wheel.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Build release wheel

on:
push:
branches:
- 'release/*'

workflow_dispatch:
inputs:
gitref:
description: "git tag, commit or branch name for the release"
type: string
required: true
default: 'release/1.8

jobs:
build-release-wheel:
runs-on: ubuntu-20.04
steps:
- uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ inputs.gitref }}

- name: Build PyPi Wheel
id: build
uses: neuralmagic/nm-actions/actions/pypi_build@main
with:
dev: false
release: true

- name: Set Env
run: |
pip3 install --upgrade pip && pip3 install --upgrade setuptools
pip3 install virtualenv
virtualenv venv
source venv/bin/activate

- name: upload whl
uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: "wheel-sparseml"
path: ${{ steps.build.outputs.whlname }}
retention-days: 7

- name: upload tar.gz
uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: "tar-sparseml"
path: ${{ steps.build.outputs.tarname }}
retention-days: 7
19 changes: 0 additions & 19 deletions .github/workflows/build-release.yml

This file was deleted.

Loading