Skip to content

Commit

Permalink
Merge branch 'ci/github/release-workflow' into 'main'
Browse files Browse the repository at this point in the history
CI: Add release workflow for GitHub

See merge request heka/medkit!240

changelog: CI: Add release workflow for GitHub
  • Loading branch information
ghisvail committed Nov 28, 2023
2 parents 90bbe43 + 9d3f156 commit 1c949ff
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: release

on:
release:
types:
- published

permissions:
contents: read

# Adapted from <https://docs.pypi.org/trusted-publishers/using-a-publisher/>
jobs:
pypi:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- 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

0 comments on commit 1c949ff

Please sign in to comment.