Skip to content

Commit

Permalink
Fixed release workflows (databrickslabs#416)
Browse files Browse the repository at this point in the history
  • Loading branch information
nfx authored Nov 18, 2024
1 parent 770cd66 commit 21a4195
Showing 1 changed file with 4 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,29 +1,19 @@
name: dist-release
name: Release

on:
pull_request:
types: [opened, synchronize]
paths-ignore:
- 'docs/**' # Ignore changes in the docs folder for pull requests
- '.github' # Ignore changes in the .github folder for pull requests
push:
branches: ['master']
paths-ignore:
- 'docs/**' # Ignore changes in the docs folder for pushes
- '.github' # Ignore changes in the .github folder for pushes
tags:
- 'v*' # only release a versioned tag, such as v.X.Y.Z
- 'v*'

jobs:
release:
publish:
runs-on: ubuntu-latest
environment: release
permissions:
# Used to authenticate to PyPI via OIDC and sign the release's artifacts with sigstore-python.
id-token: write
# Used to attach signing artifacts to the published release.
contents: write

steps:
- uses: actions/checkout@v4
with:
Expand All @@ -46,6 +36,6 @@ jobs:

- name: Publish a Python distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
if: startsWith(github.ref, 'refs/tags/v')
with:
packages-dir: python/dist/

0 comments on commit 21a4195

Please sign in to comment.