Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
e677309631 | |||
69505e8371 | |||
a5b7c0220b | |||
1c1eaa71de | |||
30f0d0a576 | |||
e2e19876cc |
94
.github/workflows/python_publish.yml
vendored
94
.github/workflows/python_publish.yml
vendored
@ -56,53 +56,55 @@ jobs:
|
||||
path: dist/
|
||||
- name: Publish distribution 📦 to PyPI
|
||||
uses: pypa/gh-action-pypi-publish@release/v1
|
||||
|
||||
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
|
||||
|
||||
env:
|
||||
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
|
||||
|
||||
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/gh-action-sigstore-python@v2.1.1
|
||||
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 }}'
|
||||
password: ${{ secrets.PYPI_API_TOKEN }}
|
||||
|
||||
# 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
|
||||
|
||||
# env:
|
||||
# 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
|
||||
|
||||
# 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/gh-action-sigstore-python@v2.1.1
|
||||
# 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 }}'
|
||||
|
||||
publish-to-testpypi:
|
||||
name: Publish Python 🐍 distribution 📦 to TestPyPI
|
||||
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -160,3 +160,5 @@ cython_debug/
|
||||
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
||||
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
||||
#.idea/
|
||||
|
||||
**/_version.py
|
@ -1 +0,0 @@
|
||||
__version__ = "editable"
|
@ -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:
|
||||
gotify_connection.create_message(message=message, title=title)
|
||||
|
||||
if not result.returncode:
|
||||
# only retry on failure
|
||||
break
|
||||
|
||||
sys.exit(result.returncode)
|
||||
|
||||
|
||||
|
@ -7,7 +7,7 @@ name = "goat_monitor"
|
||||
authors = [{ name = "Brendan Haines", email = "brendan.haines@gmail.com" }]
|
||||
description = "Remote monitoring of anything"
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.11" # might work with earlier versions, I haven't tried
|
||||
requires-python = ">=3"
|
||||
# keywords = ["one", "two"]
|
||||
license = { text = "MIT License" }
|
||||
classifiers = ["Programming Language :: Python :: 3"]
|
||||
|
Reference in New Issue
Block a user