Skip to content

v0.7.1

v0.7.1 #8

Workflow file for this run

# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#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 Package to PyPi
on:
release:
types: [published]
workflow_call:
permissions:
contents: read
jobs:
run-quality-assurance:
uses: ./.github/workflows/qa_tests.yml
deploy:
runs-on: ubuntu-latest
needs:
- run-quality-assurance
env:
herd_path: "./software/shepherd-herd"
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
- name: Set up Python 🐍
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies 🔧
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package 🧱
run: python -m build
working-directory: "${{ env.herd_path }}"
- name: Publish package 🥳
uses: pypa/gh-action-pypi-publish@v1.5.1
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN_HERD_UPLOAD }}
packages_dir: "${{ env.herd_path }}/dist"