Skip to content

v1.0.3 🌈

v1.0.3 🌈 #81

Workflow file for this run

name: CD - Package Publishing
on:
release:
types:
- published
permissions:
contents: read
packages: write
env:
# Use docker.io for Docker Hub if empty
REGISTRY: ghcr.io
# github.repository as <account>/<repo>
IMAGE_NAME: ${{ github.repository }}
jobs:
PyPi-Package-Release:
if: github.repository == 'Anselmoo/spectrafit'
name: Publish on PyPi
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
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
- name: Publish package
uses: pypa/gh-action-pypi-publish@fb9fc6a4e67ca27a7a76b17bbf90be83c2d3c716
with:
user: __token__
password: ${{ secrets.TWINE_TOKEN }}
continue-on-error: true