Skip to content

Commit a40c0d5

Browse files
authored
Update and rename deployment.yml to test-deploy.yml
1 parent 2c1ac9a commit a40c0d5

File tree

1 file changed

+0
-72
lines changed

1 file changed

+0
-72
lines changed
Lines changed: 0 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -83,75 +83,3 @@ jobs:
8383
uses: pypa/gh-action-pypi-publish@release/v1
8484
with:
8585
repository-url: https://test.pypi.org/legacy/
86-
87-
# The release distribution is published whenever a tagged branch is merged into the main
88-
# branch.
89-
deploy-release:
90-
name: Publish Release Distribution
91-
runs-on: ubuntu-latest
92-
93-
# Require a tag push to publish a release distribution.
94-
if: startsWith(github.ref, 'refs/tags/')
95-
96-
# The distribution will only be published if the tests have passed.
97-
needs:
98-
- build
99-
100-
# Set up the environment for trusted publishing on PyPI.
101-
environment:
102-
name: release
103-
url: https://pypi.org/p/cwms-python
104-
105-
permissions:
106-
id-token: write # IMPORTANT: mandatory for trusted publishing
107-
108-
steps:
109-
- name: Download Distribution
110-
uses: actions/download-artifact@v4
111-
with:
112-
name: package-dist
113-
path: dist/
114-
115-
- name: Publish Distribution To PyPI
116-
uses: pypa/gh-action-pypi-publish@release/v1
117-
118-
# Upload a GitHub release whenever a release distribution is published.
119-
github-release:
120-
name: Create Signed GitHub Release
121-
runs-on: ubuntu-latest
122-
123-
# GitHub releases are only uploaded for release (tagged) distributions.
124-
needs: [deploy-release]
125-
126-
permissions:
127-
contents: write # IMPORTANT: mandatory for making GitHub Releases
128-
id-token: write # IMPORTANT: mandatory for sigstore
129-
130-
steps:
131-
- name: Download Distribution
132-
uses: actions/download-artifact@v4
133-
with:
134-
name: package-dist
135-
path: dist/
136-
137-
- name: Sign Distribution
138-
uses: sigstore/gh-action-sigstore-python@v3.0.0
139-
with:
140-
inputs: |
141-
./dist/*.tar.gz
142-
./dist/*.whl
143-
144-
- name: Create GitHub Release
145-
env:
146-
GITHUB_TOKEN: ${{ github.token }}
147-
run: |
148-
gh release create '${{ github.ref_name }}' \
149-
--repo '${{ github.repository }}' \
150-
--notes ""
151-
152-
- name: Upload GitHub Release
153-
env:
154-
GITHUB_TOKEN: ${{ github.token }}
155-
run: |-
156-
gh release upload '${{ github.ref_name }}' dist/** \
157-
--repo '${{ github.repository }}'

0 commit comments

Comments
 (0)