Skip to content

Commit

Permalink
Merge pull request #43 from Daafip/Daafip-patch-1
Browse files Browse the repository at this point in the history
Create python-publish.yml
  • Loading branch information
Daafip committed Mar 28, 2024
2 parents 12efea3 + 20ca1bb commit add70de
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# 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

on:
release:
types: [published]

permissions:
contents: read

jobs:
deploy:

runs-on: ubuntu-latest
# Specifying a GitHub environment is optional, but strongly encouraged
environment: release
# name: pypi
# url: https://pypi.org/p/ewatercycle-hbv
permissions:
id-token: write
steps:
- name: Download all the dists
uses: actions/download-artifact@v3
with:
name: python-package-distributions
path: dist/
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit add70de

Please sign in to comment.