Skip to content

Commit

Permalink
Create release.yml
Browse files Browse the repository at this point in the history
adding digital attestation
  • Loading branch information
8go authored Nov 21, 2024
1 parent 0d12760 commit 1881a5d
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# See https://blog.pypi.org/posts/2024-11-14-pypi-now-supports-digital-attestations/
# https://github.com/pypa/gh-action-pypi-publish
# https://github.com/pypa/sampleproject/blob/main/.github/workflows/release.yml

name: Release

on:
push:
branches:
- main

jobs:
build-and-publish:
runs-on: ubuntu-latest
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install build dependencies
run: python -m pip install -U setuptools wheel build
- name: Build
run: python -m build .
- name: Publish
uses: pypa/gh-action-pypi-publish@release/v1
with:
skip-existing: true
verbose: true

0 comments on commit 1881a5d

Please sign in to comment.