Skip to content

Commit

Permalink
ci: update plot on release (#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
lkstrp authored Sep 18, 2024
1 parent a5eeafc commit c331df1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}'

Expand All @@ -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

Expand All @@ -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:
Expand Down

0 comments on commit c331df1

Please sign in to comment.