Skip to content

Commit

Permalink
Move publish to physrisk from physrisk-lib (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
joemoorhouse authored Mar 1, 2024
1 parent 8853d8e commit c9bf64f
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 10 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,18 @@ jobs:
with:
python-version: ${{ env.python-version }}

- name: "Output Run Number"
run: echo ${{ github.run_number }}

- name: "Build with PDM backend"
run: |
pdm build
- name: "Sign packages with Sigstore"
uses: sigstore/gh-action-sigstore-python@v1.2.3
with:
inputs: >-
./dist/*.tar.gz
./dist/*.whl
- name: "Publish package to PyPI"
uses: pypa/gh-action-pypi-publish@release/v1
with:
verbose: true


verbose: true
17 changes: 14 additions & 3 deletions .github/workflows/test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ jobs:
publish:
name: "🐍📦 Test build and publish"
runs-on: ubuntu-latest
environment:
name: testpypi
permissions:
# IMPORTANT: mandatory for trusted publishing
id-token: write
steps:
- name: "Checkout repository"
uses: actions/checkout@v4
Expand Down Expand Up @@ -42,9 +47,15 @@ jobs:
run: |
pdm build
- name: "Publish package to Test PyPI"
- name: "Sign packages with Sigstore"
uses: sigstore/gh-action-sigstore-python@v2.1.0
with:
inputs: >-
./dist/*.tar.gz
./dist/*.whl
- name: Publish distribution to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
verbose: true
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
repository-url: https://test.pypi.org/legacy/
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[project]
name = "physrisk-lib"
name = "physrisk"
version = "0.25.0"
description = "OS-Climate Physical Risk Library"
authors = [
Expand Down

0 comments on commit c9bf64f

Please sign in to comment.