Skip to content

feat: barebones dummy otel package publishing #16

feat: barebones dummy otel package publishing

feat: barebones dummy otel package publishing #16

Workflow file for this run

# This workflow will upload Python Packages to PyPI when a release is created
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Upload PyPI Package
on:
push:
branches:
- feat/dummy-otel-plugin-package
permissions:
contents: read
jobs:
release-build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
package:
- name: aws-durable-execution-sdk-python-otel
path: packages/aws-durable-execution-sdk-python-otel
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: "3.11"
- name: Install Hatch
run: python -m pip install --upgrade hatch==1.16.5
- name: Build release distributions
working-directory: ${{ matrix.package.path }}
run: hatch build
- name: Verify legal files in release distributions
run: python .github/scripts/check_dist_legal_files.py ${{ matrix.package.path }}
- name: Upload distributions
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: release-dists-${{ matrix.package.name }}
path: ${{ matrix.package.path }}/dist/
pypi-publish:
runs-on: ubuntu-latest
needs:
- release-build
strategy:
fail-fast: false
matrix:
package:
- name: aws-durable-execution-sdk-python-otel
permissions:
id-token: write
environment:
name: pypi
steps:
- name: Retrieve release distributions
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: release-dists-${{ matrix.package.name }}
path: dist/
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0
with:
packages-dir: dist/