Skip to content

Build package

Build package #2

Workflow file for this run

name: Build package
on: [workflow_dispatch]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: |
python -m build
upload:
name: Upload artifact
needs: [build]
runs-on: ubuntu-latest
steps:
- uses: actions/upload-artifact@v4
with:
path: dist/*
overwrite: true
download:
name: Download artifact
needs: [upload]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
pattern: dist/*