Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
e677309631 | |||
69505e8371 | |||
a5b7c0220b |
86
.github/workflows/python_publish.yml
vendored
86
.github/workflows/python_publish.yml
vendored
@ -59,52 +59,52 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
password: ${{ secrets.PYPI_API_TOKEN }}
|
password: ${{ secrets.PYPI_API_TOKEN }}
|
||||||
|
|
||||||
github-release:
|
# github-release:
|
||||||
name: >-
|
# name: >-
|
||||||
Sign the Python 🐍 distribution 📦 with Sigstore
|
# Sign the Python 🐍 distribution 📦 with Sigstore
|
||||||
and upload them to GitHub Release
|
# and upload them to GitHub Release
|
||||||
needs:
|
# needs:
|
||||||
- publish-to-pypi
|
# - publish-to-pypi
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
|
|
||||||
permissions:
|
# permissions:
|
||||||
contents: write # IMPORTANT: mandatory for making GitHub Releases
|
# contents: write # IMPORTANT: mandatory for making GitHub Releases
|
||||||
id-token: write # IMPORTANT: mandatory for sigstore
|
# id-token: write # IMPORTANT: mandatory for sigstore
|
||||||
|
|
||||||
env:
|
# env:
|
||||||
RUNNER_TOOL_CACHE: /toolcache # https://about.gitea.com/resources/tutorials/enable-gitea-actions-cache-to-accelerate-cicd
|
# RUNNER_TOOL_CACHE: /toolcache # https://about.gitea.com/resources/tutorials/enable-gitea-actions-cache-to-accelerate-cicd
|
||||||
AGENT_TOOLSDIRECTORY: /toolcache # https://github.com/actions/setup-python/issues/824
|
# AGENT_TOOLSDIRECTORY: /toolcache # https://github.com/actions/setup-python/issues/824
|
||||||
|
|
||||||
steps:
|
# steps:
|
||||||
- name: Download all the dists
|
# - name: Download all the dists
|
||||||
uses: actions/download-artifact@v3
|
# uses: actions/download-artifact@v3
|
||||||
with:
|
# with:
|
||||||
name: python-package-distributions
|
# name: python-package-distributions
|
||||||
path: dist/
|
# path: dist/
|
||||||
- name: Sign the dists with Sigstore
|
# - name: Sign the dists with Sigstore
|
||||||
uses: sigstore/gh-action-sigstore-python@v2.1.1
|
# uses: sigstore/gh-action-sigstore-python@v2.1.1
|
||||||
with:
|
# with:
|
||||||
inputs: >-
|
# inputs: >-
|
||||||
./dist/*.tar.gz
|
# ./dist/*.tar.gz
|
||||||
./dist/*.whl
|
# ./dist/*.whl
|
||||||
- name: Create GitHub Release
|
# - name: Create GitHub Release
|
||||||
env:
|
# env:
|
||||||
GITHUB_TOKEN: ${{ github.token }}
|
# GITHUB_TOKEN: ${{ github.token }}
|
||||||
run: >-
|
# run: >-
|
||||||
gh release create
|
# gh release create
|
||||||
'${{ github.ref_name }}'
|
# '${{ github.ref_name }}'
|
||||||
--repo '${{ github.repository }}'
|
# --repo '${{ github.repository }}'
|
||||||
--notes ""
|
# --notes ""
|
||||||
- name: Upload artifact signatures to GitHub Release
|
# - name: Upload artifact signatures to GitHub Release
|
||||||
env:
|
# env:
|
||||||
GITHUB_TOKEN: ${{ github.token }}
|
# GITHUB_TOKEN: ${{ github.token }}
|
||||||
# Upload to GitHub Release using the `gh` CLI.
|
# # Upload to GitHub Release using the `gh` CLI.
|
||||||
# `dist/` contains the built packages, and the
|
# # `dist/` contains the built packages, and the
|
||||||
# sigstore-produced signatures and certificates.
|
# # sigstore-produced signatures and certificates.
|
||||||
run: >-
|
# run: >-
|
||||||
gh release upload
|
# gh release upload
|
||||||
'${{ github.ref_name }}' dist/**
|
# '${{ github.ref_name }}' dist/**
|
||||||
--repo '${{ github.repository }}'
|
# --repo '${{ github.repository }}'
|
||||||
|
|
||||||
publish-to-testpypi:
|
publish-to-testpypi:
|
||||||
name: Publish Python 🐍 distribution 📦 to TestPyPI
|
name: Publish Python 🐍 distribution 📦 to TestPyPI
|
||||||
|
@ -96,6 +96,10 @@ def wrap(command: List[str], config: Path, retries: int, version):
|
|||||||
with gotify.Gotify(base_url=url, app_token=app_token) as gotify_connection:
|
with gotify.Gotify(base_url=url, app_token=app_token) as gotify_connection:
|
||||||
gotify_connection.create_message(message=message, title=title)
|
gotify_connection.create_message(message=message, title=title)
|
||||||
|
|
||||||
|
if not result.returncode:
|
||||||
|
# only retry on failure
|
||||||
|
break
|
||||||
|
|
||||||
sys.exit(result.returncode)
|
sys.exit(result.returncode)
|
||||||
|
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ name = "goat_monitor"
|
|||||||
authors = [{ name = "Brendan Haines", email = "brendan.haines@gmail.com" }]
|
authors = [{ name = "Brendan Haines", email = "brendan.haines@gmail.com" }]
|
||||||
description = "Remote monitoring of anything"
|
description = "Remote monitoring of anything"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = ">=3.11" # might work with earlier versions, I haven't tried
|
requires-python = ">=3"
|
||||||
# keywords = ["one", "two"]
|
# keywords = ["one", "two"]
|
||||||
license = { text = "MIT License" }
|
license = { text = "MIT License" }
|
||||||
classifiers = ["Programming Language :: Python :: 3"]
|
classifiers = ["Programming Language :: Python :: 3"]
|
||||||
|
Reference in New Issue
Block a user