Skip to content

Commit

Permalink
Merge pull request #20 from EnergieID/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
JrtPec authored Jan 31, 2025
2 parents 5252347 + aeeed4e commit 8f8adfa
Show file tree
Hide file tree
Showing 5 changed files with 533 additions and 480 deletions.
42 changes: 13 additions & 29 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,22 @@
# This workflow will upload a Python Package using Twine 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 Python Package
name: Build and Publish Package

on:
release:
types: [published]

permissions:
contents: read

jobs:
deploy:
publish:
runs-on: ubuntu-latest
permissions:
id-token: write
environment: release

contents: write
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
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
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
- uses: actions/checkout@v4

- name: Publish PyPI package
uses: cadifyai/[email protected]
with:
PYTHON_VERSION: "3.11"
POETRY_VERSION: "1.7.1"
POETRY_CORE_VERSION: "1.8.1"
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PUBLISH_REGISTRY_PASSWORD: ${{ secrets.PYPI_TOKEN }}
Loading

0 comments on commit 8f8adfa

Please sign in to comment.