Files
PyGithub/.github/workflows/_build-pkg.yml
T

33 lines
720 B
YAML

name: Build package
on:
workflow_call:
inputs:
artifact-name:
description: "Name of an artifact"
type: "string"
required: false
default: "package"
jobs:
build-pkg:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: pip install -U build twine
- name: Build 📦 package
run: python -m build
- name: Check 📦 package
run: twine check dist/*
- uses: actions/upload-artifact@v3
with:
name: ${{ inputs.artifact-name }}
path: dist