Skip to content

Bump docker/login-action from 4 to 4.1.0 (#504) #1147

Bump docker/login-action from 4 to 4.1.0 (#504)

Bump docker/login-action from 4 to 4.1.0 (#504) #1147

name: Build distribution
on: [push]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true
permissions:
contents: read
jobs:
build-distribution:
name: Build distribution
permissions:
contents: read
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.13"]
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
persist-credentials: false
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install pypa/build
run: |
python -m venv ./venv
source ./venv/bin/activate
echo "PATH=${PATH}" >> "${GITHUB_ENV}"
python -m pip install --upgrade pip
python -m pip install .
python -m pip install build
- name: Build a binary wheel and a source tarball
run: |
source ./venv/bin/activate
python3 -m build
- name: Store the distribution packages
uses: actions/upload-artifact@v7
with:
name: python-package-distributions
path: dist/
- name: Notify Slack on failure
if: (failure() || cancelled()) && github.ref_name == github.event.repository.default_branch
uses: senzing-factory/build-resources/slack-failure-notification@v4
with:
job-status: ${{ job.status }}
slack-channel: ${{ secrets.SLACK_CHANNEL }}
slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }}