Skip to content

Commit a74064f

Browse files
committed
Merge pull-request #15
2 parents 87529d9 + 7211870 commit a74064f

1 file changed

Lines changed: 9 additions & 25 deletions

File tree

.github/workflows/validate-and-publish.yml

Lines changed: 9 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,16 @@ jobs:
4646
- name: Run type checking
4747
run: make typecheck
4848

49-
prepare-release:
50-
runs-on: ubuntu-latest
49+
- name: Build packages
50+
run: make build
51+
52+
publish:
53+
name: Publish to PyPI
5154
needs: build
55+
environment: production
56+
runs-on:
57+
group: package-deploy # environment: production # require manual approval for production deployments
58+
5259
steps:
5360
# https://github.com/actions/checkout
5461
- name: Checkout
@@ -62,29 +69,6 @@ jobs:
6269
- name: Build packages
6370
run: make build
6471

65-
- name: Upload release artifacts
66-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
67-
with:
68-
name: release-artifacts-${{ needs.build.outputs.version }}
69-
path: |
70-
packages/*/dist/
71-
.changeset/**
72-
retention-days: 7
73-
74-
publish:
75-
name: Publish to PyPI
76-
needs: [build, prepare-release]
77-
environment: production
78-
runs-on:
79-
group: package-deploy # environment: production # require manual approval for production deployments
80-
81-
steps:
82-
- name: Download release artifacts
83-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
84-
with:
85-
name: release-artifacts-${{ needs.build.outputs.version }}
86-
path: .
87-
8872
- name: Prepare packages for publishing
8973
run: |
9074
mkdir -p dist-to-publish

0 commit comments

Comments
 (0)