From c331df185de18f246c8d6728035acd816ddc560b Mon Sep 17 00:00:00 2001 From: Lukas Trippe Date: Wed, 18 Sep 2024 08:51:36 +0200 Subject: [PATCH] ci: update plot on release (#205) --- .github/workflows/release.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 03ea2ee..7091ff4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -71,12 +71,16 @@ jobs: run: | python -m pip install uv uv pip install --system ".[dev]" + uv pip install --system cartopy - name: Create dataset run: | import powerplantmatching as pm df = pm.powerplants(update=True) df.to_csv("powerplants.csv", index_label="id") + + fig, ax = df.powerplant.plot_map(figsize=(22, 16)) + fig.savefig('doc/powerplants.png') shell: python # End of preparation script @@ -91,7 +95,6 @@ jobs: with: branch: ${{ env.BRANCH_NAME }} commit_message: '${{ env.PREPARATION_COMMIT }}' - file_pattern: 'powerplants.csv' tagging_message: '${{ github.ref_name }}' push_options: '${{ github.ref_name }}' @@ -113,7 +116,7 @@ jobs: - uses: softprops/action-gh-release@v2 with: body: | - Revised release notes are available in the [documentation](https://powerplantmatching.readthedocs.io/en/latest/release-notes.html). + Revised release notes are available in the [documentation](https://${{ github.event.repository.name }}.readthedocs.io/en/latest/release-notes.html). append_body: true generate_release_notes: true @@ -123,7 +126,7 @@ jobs: runs-on: ubuntu-latest environment: name: pypi - url: https://pypi.org/project/powerplantmatching/ + url: https://pypi.org/project/${{ github.event.repository.name }} permissions: id-token: write steps: