Skip to content

Commit

Permalink
Add GitHub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
blechschmidt committed Dec 15, 2024
1 parent acca910 commit 6ef8e7e
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
on:
push:
tags:
- "v*.*.*"
workflow_dispatch:

name: Release and publish package

jobs:
publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/certbot-dns-local
permissions:
id-token: write # Permission is mandatory for trusted publishing
steps:
- name: Checkout
uses: actions/checkout@v4
- name: GitHub Release
uses: softprops/action-gh-release@v1
with:
name: Automated release of ${{ github.ref }}
draft: false
prerelease: false
body: This is an automated build of commit ${{ github.ref }}.
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 6ef8e7e

Please sign in to comment.