Skip to content

Commit

Permalink
Add a release.yml workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
brettcannon committed Oct 12, 2023
1 parent 7b9ca8a commit 2e8d62e
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Release

on: ["workflow_dispatch"]

jobs:
build-and-publish:
runs-on: ubuntu-latest
environment: release
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: Build
run: pipx run build .
- name: Publish
uses: pypa/gh-action-pypi-publish@release/v1
with:
skip-existing: true

0 comments on commit 2e8d62e

Please sign in to comment.