Skip to content

Commit 428aaea

Browse files
authored
refactor: 👷 generalise release workflow, not Python specific (#261)
# Description So that it can be used in other projects, not just Python projects. No review needed.
1 parent 9279991 commit 428aaea

File tree

1 file changed

+1
-21
lines changed

1 file changed

+1
-21
lines changed

.github/workflows/reusable-release-package.yml renamed to .github/workflows/reusable-release-project.yml

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Release package
1+
name: Release project
22

33
on:
44
workflow_call:
@@ -66,26 +66,6 @@ jobs:
6666
# env variable containing the new version, created by the Commitizen action
6767
tag_name : ${{ env.REVISION }}
6868

69-
# This workflow and the publish workflows are based on:
70-
# - https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/
71-
# - https://www.andrlik.org/dispatches/til-use-uv-for-build-and-publish-github-actions/
72-
# - https://github.com/astral-sh/trusted-publishing-examples
73-
- name: Set up uv
74-
uses: astral-sh/setup-uv@bd01e18f51369d5a26f1651c3cb451d3417e3bba # v6.3.1
75-
with:
76-
enable-cache: true
77-
cache-dependency-glob: "uv.lock"
78-
79-
- name: Build distributions
80-
# Builds dists from source and stores them in the dist/ directory.
81-
run: uv build
82-
83-
- name: Upload built distributions
84-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
85-
with:
86-
name: release-dists
87-
path: dist/
88-
8969
# Need to output this to tell the next job that a release was made.
9070
- id: version-var
9171
name: Output version variable

0 commit comments

Comments
 (0)