-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
64 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
name: Publish Python 🐍 distribution 📦 to PyPI | ||
on: | ||
release: | ||
types: [published] | ||
|
||
push: | ||
# Pattern matched against refs/tags | ||
tags: | ||
- 'v*' # Push events to every tag not containing / | ||
jobs: | ||
build: | ||
name: Build distribution 📦 | ||
|
@@ -37,7 +38,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
environment: | ||
name: release | ||
url: https://pypi.org/p/paramnormal # Replace <package-name> with your PyPI project name | ||
url: https://pypi.org/p/wqio # Replace <package-name> with your PyPI project name | ||
permissions: | ||
id-token: write # IMPORTANT: mandatory for trusted publishing | ||
|
||
|
@@ -50,55 +51,45 @@ jobs: | |
- name: Publish distribution 📦 to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
|
||
## officially, the python docs want you pushing to TestPyPI | ||
## after every merge and to PyPI with every tag. You push the | ||
## tag, and then this GHA would do the release. | ||
## In practice, I don't like this. You need to alter the version | ||
## number with every PR to get a clean upload to TestPyPI. | ||
## | ||
## My approach is to only upload to TestPyPI with the tag push, | ||
## and then to upload to PyPI with the GitHub release. And so | ||
## I've commented out this sign & release workflow | ||
|
||
# github-release: | ||
# name: >- | ||
# Sign the Python 🐍 distribution 📦 with Sigstore | ||
# and upload them to GitHub Release | ||
# needs: | ||
# - publish-to-pypi | ||
# runs-on: ubuntu-latest | ||
github-release: | ||
name: >- | ||
Sign the Python 🐍 distribution 📦 with Sigstore | ||
and upload them to GitHub Release | ||
needs: | ||
- publish-to-pypi | ||
runs-on: ubuntu-latest | ||
|
||
# permissions: | ||
# contents: write # IMPORTANT: mandatory for making GitHub Releases | ||
# id-token: write # IMPORTANT: mandatory for sigstore | ||
permissions: | ||
contents: write # IMPORTANT: mandatory for making GitHub Releases | ||
id-token: write # IMPORTANT: mandatory for sigstore | ||
|
||
# steps: | ||
# - name: Download all the dists | ||
# uses: actions/download-artifact@v3 | ||
# with: | ||
# name: python-package-distributions | ||
# path: dist/ | ||
# - name: Sign the dists with Sigstore | ||
# uses: sigstore/[email protected] | ||
# with: | ||
# inputs: >- | ||
# ./dist/*.tar.gz | ||
# ./dist/*.whl | ||
# - name: Create GitHub Release | ||
# env: | ||
# GITHUB_TOKEN: ${{ github.token }} | ||
# run: >- | ||
# gh release create | ||
# '${{ github.ref_name }}' | ||
# --repo '${{ github.repository }}' | ||
# --notes "" | ||
# - name: Upload artifact signatures to GitHub Release | ||
# env: | ||
# GITHUB_TOKEN: ${{ github.token }} | ||
# # Upload to GitHub Release using the `gh` CLI. | ||
# # `dist/` contains the built packages, and the | ||
# # sigstore-produced signatures and certificates. | ||
# run: >- | ||
# gh release upload | ||
# '${{ github.ref_name }}' dist/** | ||
# --repo '${{ github.repository }}' | ||
steps: | ||
- name: Download all the dists | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: python-package-distributions | ||
path: dist/ | ||
- name: Sign the dists with Sigstore | ||
uses: sigstore/[email protected] | ||
with: | ||
inputs: >- | ||
./dist/*.tar.gz | ||
./dist/*.whl | ||
- name: Create GitHub Release | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
run: >- | ||
gh release create | ||
'${{ github.ref_name }}' | ||
--repo '${{ github.repository }}' | ||
--notes "" | ||
- name: Upload artifact signatures to GitHub Release | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
# Upload to GitHub Release using the `gh` CLI. | ||
# `dist/` contains the built packages, and the | ||
# sigstore-produced signatures and certificates. | ||
run: >- | ||
gh release upload | ||
'${{ github.ref_name }}' dist/** | ||
--repo '${{ github.repository }}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
package: | ||
name: wqio | ||
version: 0.6.1 | ||
version: 0.6.2 | ||
|
||
source: | ||
path: ../../ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
DESCRIPTION = "wqio: Water Quality Inflow/Outflow" | ||
LONG_DESCRIPTION = DESCRIPTION | ||
NAME = "wqio" | ||
VERSION = "0.6.1" | ||
VERSION = "0.6.2" | ||
AUTHOR = "Paul Hobson (Herrera Environmental Consultants)" | ||
AUTHOR_EMAIL = "[email protected]" | ||
URL = "https://github.com/International-BMP-Database/wqio" | ||
|