Skip to content

ci: 🐛 publishing and building need to be split #91

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ group:
dest: .github/workflows/build-package.yml
- source: .github/workflows/build-website.yml
dest: .github/workflows/build-website.yml
- source: .github/workflows/update-version.yml
dest: .github/workflows/update-version.yml
- source: .github/workflows/release-package.yml
dest: .github/workflows/release-package.yml
- source: .github/workflows/scorecards.yml
dest: .github/workflows/scorecards.yml
- source: .github/_project-dependabot.yml
Expand Down
42 changes: 42 additions & 0 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Release package

on:
push:
branches:
- main

# Limit token permissions for security
permissions: read-all

jobs:
release-package:
# Only give permissions for this job.
permissions:
contents: write
uses: seedcase-project/.github/.github/workflows/reusable-release-package.yml@main
with:
app-id: ${{ vars.UPDATE_VERSION_APP_ID }}
secrets:
update-version-gh-token: ${{ secrets.UPDATE_VERSION_TOKEN }}

pypi-publish:
name: Publish to PyPI
runs-on: ubuntu-latest
# Only give permissions for this job.
permissions:
# IMPORTANT: mandatory for trusted publishing.
id-token: write
environment:
name: pypi
needs:
- release-package
steps:
- name: Download built distributions
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
name: release-dists
path: dist/

- name: Publish 📦 to PyPI
# Only publish if the option is explicitly set in the calling workflow.
run: uv publish --trusted-publishing always
20 changes: 0 additions & 20 deletions .github/workflows/update-version.yml

This file was deleted.