Skip to content

Commit

Permalink
feat: Add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
manzt committed Apr 19, 2024
1 parent ead015b commit 023f4ba
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Release

on:
push:
tags:
- "v*"

jobs:

Release:
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/ipyniivue
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
# For generating GitHub Releases + Release notes
# ref: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/setup-python@v5
with:
python-version: "3.x"

- run: |
pip install uv
uv pip install --system build
python -m build
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

- uses: actions/setup-node@v4
with:
node-version: 18.x
- run: npx [email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 023f4ba

Please sign in to comment.